diff --git a/test/cfg/gnu.c b/test/cfg/gnu.c index 7ed8e3cf0c5..a4c3f04a233 100644 --- a/test/cfg/gnu.c +++ b/test/cfg/gnu.c @@ -7,7 +7,7 @@ // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // -// cppcheck-suppress-file valueFlowBailout +// cppcheck-suppress-file [valueFlowBailout,purgedConfiguration] #define _GNU_SOURCE @@ -23,7 +23,7 @@ #include #include #include -#if !defined(__CYGWIN__) && !(defined(__APPLE__) && defined(__MACH__)) +#if !defined(__CYGWIN__) && !defined(__APPLE__) #include #endif #include @@ -492,7 +492,7 @@ void leakReturnValNotUsed() return; } -#if !defined(__CYGWIN__) && !(defined(__APPLE__) && defined(__MACH__)) +#if !defined(__CYGWIN__) && !defined(__APPLE__) int nullPointer_epoll_ctl(int epfd, int op, int fd, struct epoll_event *event) { // no warning is expected diff --git a/test/cfg/posix.c b/test/cfg/posix.c index 177c69a81a7..663b7cb3df3 100644 --- a/test/cfg/posix.c +++ b/test/cfg/posix.c @@ -7,7 +7,7 @@ // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // -// cppcheck-suppress-file [valueFlowBailout,purgedConfiguration] +// cppcheck-suppress-file [valueFlowBailout] #define _BSD_SOURCE #define _XOPEN_SOURCE // wcwidth @@ -39,7 +39,7 @@ #if defined(__APPLE__) #include #endif -#if !(defined(__APPLE__) && defined(__MACH__)) +#if !defined(__APPLE__) #include #endif #include @@ -49,7 +49,7 @@ #include -#if !(defined(__APPLE__) && defined(__MACH__)) +#if !defined(__APPLE__) void nullPointer_mq_timedsend(mqd_t mqdes, const char* msg_ptr, size_t msg_len, unsigned msg_prio, const struct timespec* abs_timeout) { // cppcheck-suppress nullPointer (void) mq_timedsend(mqdes, NULL, msg_len, msg_prio, abs_timeout); @@ -171,7 +171,7 @@ int nullPointer_getopt(int argc, char* const argv[], const char* optstring) return getopt(argc, argv, optstring); } -#if !(defined(__APPLE__) && defined(__MACH__)) +#if !defined(__APPLE__) int invalidFunctionArgStr_mq_send(mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned msg_prio) { // No warning is expected for: