mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
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="
|
||||
#endif
|
||||
/* 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));
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user