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;
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

View File

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