tests/malloc: Fix cppcheck error
tests/malloc/main.c:123: error (preprocessorErrorDirective): Bad suppression attribute '(should'. You can write comments in the comment after a ; or //. Valid suppression attributes; symbolName=sym
This commit is contained in:
parent
0de8bfaadc
commit
c0004920ec
@ -120,7 +120,7 @@ int main(void)
|
|||||||
#pragma GCC diagnostic ignored "-Walloc-size-larger-than="
|
#pragma GCC diagnostic ignored "-Walloc-size-larger-than="
|
||||||
#endif
|
#endif
|
||||||
/* test if an overflow is correctly detected by calloc(): the size below overflows by 1 byte */
|
/* test if an overflow is correctly detected by calloc(): the size below overflows by 1 byte */
|
||||||
/* cppcheck-suppress leakReturnValNotUsed (should return NULL, so nothing to free anyway) */
|
/* cppcheck-suppress leakReturnValNotUsed; (should return NULL, so nothing to free anyway) */
|
||||||
expect(NULL == calloc(SIZE_MAX / 16 + 1, 16));
|
expect(NULL == calloc(SIZE_MAX / 16 + 1, 16));
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user