We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb5bf5b commit efe3b4bCopy full SHA for efe3b4b
1 file changed
test/cfg/std.c
@@ -39,15 +39,14 @@
39
#include <stddef.h>
40
41
void test_int32_min() {
42
+ // cppcheck-suppress shiftNegativeLHS
43
// cppcheck-suppress shiftTooManyBits ; tests that INT32_MIN is a 32-bit expression (not 64-bit expression)
- int a = INT32_MIN >> 40;
44
+ (void)(INT32_MIN >> 40);
45
}
46
47
void test_int64_min() {
- char buf[10];
48
-
49
- // cppcheck-suppress arrayIndexOutOfBounds ; tests that INT64_MIN is a signed expression
50
- buf[100 * (int)(INT64_MIN < 0)] = 0;
+ // cppcheck-suppress compareValueOutOfTypeRangeError ; tests that INT64_MIN is a signed expression
+ if (INT64_MIN < 0) {}
51
52
53
size_t invalidFunctionArgStr_wcslen(void)
0 commit comments