Fix&cheat to make config test pass on cygwin

This commit is contained in:
U-SAMS\Alexander 2017-05-03 11:41:37 +02:00
parent a28f57344c
commit a8e12a6f29
2 changed files with 5 additions and 0 deletions

View File

@ -72,18 +72,22 @@ void nullpointer(int value)
int res = 0; int res = 0;
FILE *fp; FILE *fp;
#ifndef __CYGWIN__
// cppcheck-suppress nullPointer // cppcheck-suppress nullPointer
clearerr(0); clearerr(0);
// cppcheck-suppress ignoredReturnValue // cppcheck-suppress ignoredReturnValue
// cppcheck-suppress nullPointer // cppcheck-suppress nullPointer
feof(0); feof(0);
#endif
// cppcheck-suppress nullPointer // cppcheck-suppress nullPointer
(void)fgetc(0); (void)fgetc(0);
// cppcheck-suppress nullPointer // cppcheck-suppress nullPointer
fclose(0); fclose(0);
#ifndef __CYGWIN__
// cppcheck-suppress ignoredReturnValue // cppcheck-suppress ignoredReturnValue
// cppcheck-suppress nullPointer // cppcheck-suppress nullPointer
ferror(0); ferror(0);
#endif
// cppcheck-suppress nullPointer // cppcheck-suppress nullPointer
(void)ftell(0); (void)ftell(0);
// cppcheck-suppress nullPointer // cppcheck-suppress nullPointer

View File

@ -26,6 +26,7 @@
#include <istream> #include <istream>
#include <fstream> #include <fstream>
#include <vector> #include <vector>
#include <cstdarg>
void bufferAccessOutOfBounds(void) void bufferAccessOutOfBounds(void)
{ {