diff --git a/test/cfg/std.c b/test/cfg/std.c index 0fea8bef0..111849f75 100644 --- a/test/cfg/std.c +++ b/test/cfg/std.c @@ -72,18 +72,22 @@ void nullpointer(int value) int res = 0; FILE *fp; +#ifndef __CYGWIN__ // cppcheck-suppress nullPointer clearerr(0); // cppcheck-suppress ignoredReturnValue // cppcheck-suppress nullPointer feof(0); +#endif // cppcheck-suppress nullPointer (void)fgetc(0); // cppcheck-suppress nullPointer fclose(0); +#ifndef __CYGWIN__ // cppcheck-suppress ignoredReturnValue // cppcheck-suppress nullPointer ferror(0); +#endif // cppcheck-suppress nullPointer (void)ftell(0); // cppcheck-suppress nullPointer diff --git a/test/cfg/std.cpp b/test/cfg/std.cpp index bf562812f..61e43bcfe 100644 --- a/test/cfg/std.cpp +++ b/test/cfg/std.cpp @@ -26,6 +26,7 @@ #include #include #include +#include void bufferAccessOutOfBounds(void) {