From c0004920ecaf5809fe5824d84c498a2c5962b91e Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Thu, 25 Nov 2021 10:41:29 +0100 Subject: [PATCH] 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 --- tests/malloc/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/malloc/main.c b/tests/malloc/main.c index 04e9eb44ac..34fa1ccd11 100644 --- a/tests/malloc/main.c +++ b/tests/malloc/main.c @@ -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