Fixed a few minor visual analyzer warnings
This commit is contained in:
+1
-1
@@ -56,7 +56,7 @@
|
|||||||
#if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__)
|
#if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__)
|
||||||
# include <fcntl.h> /* _O_BINARY */
|
# include <fcntl.h> /* _O_BINARY */
|
||||||
# include <io.h> /* _setmode, _isatty */
|
# include <io.h> /* _setmode, _isatty */
|
||||||
# define SET_BINARY_MODE(file) _setmode(_fileno(file), _O_BINARY)
|
# define SET_BINARY_MODE(file) {int unused = _setmode(_fileno(file), _O_BINARY); (void)unused; }
|
||||||
#else
|
#else
|
||||||
# define SET_BINARY_MODE(file)
|
# define SET_BINARY_MODE(file)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+1
-1
@@ -65,7 +65,7 @@
|
|||||||
# ifdef __MINGW32__
|
# ifdef __MINGW32__
|
||||||
/* int _fileno(FILE *stream); // seems no longer useful // MINGW somehow forgets to include this windows declaration into <stdio.h> */
|
/* int _fileno(FILE *stream); // seems no longer useful // MINGW somehow forgets to include this windows declaration into <stdio.h> */
|
||||||
# endif
|
# endif
|
||||||
# define SET_BINARY_MODE(file) _setmode(_fileno(file), _O_BINARY)
|
# define SET_BINARY_MODE(file) { int unused = _setmode(_fileno(file), _O_BINARY); (void)unused; }
|
||||||
# define IS_CONSOLE(stdStream) _isatty(_fileno(stdStream))
|
# define IS_CONSOLE(stdStream) _isatty(_fileno(stdStream))
|
||||||
#else
|
#else
|
||||||
# include <unistd.h> /* isatty */
|
# include <unistd.h> /* isatty */
|
||||||
|
|||||||
@@ -653,7 +653,7 @@ int main(int argc, char** argv)
|
|||||||
result = benchSample(benchNb);
|
result = benchSample(benchNb);
|
||||||
else result = benchFiles(argv+filenamesStart, argc-filenamesStart, benchNb);
|
else result = benchFiles(argv+filenamesStart, argc-filenamesStart, benchNb);
|
||||||
|
|
||||||
if (main_pause) { printf("press enter...\n"); getchar(); }
|
if (main_pause) { int unused; printf("press enter...\n"); unused = getchar(); (void)unused; }
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-1
@@ -512,8 +512,10 @@ int main(int argc, char** argv)
|
|||||||
result = fuzzerTests(seed, nbTests, testNb, ((double)proba) / 100);
|
result = fuzzerTests(seed, nbTests, testNb, ((double)proba) / 100);
|
||||||
if (mainPause)
|
if (mainPause)
|
||||||
{
|
{
|
||||||
|
int unused;
|
||||||
DISPLAY("Press Enter \n");
|
DISPLAY("Press Enter \n");
|
||||||
getchar();
|
unused = getchar();
|
||||||
|
(void)unused;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-1
@@ -150,8 +150,10 @@ static int badusage(const char* programName)
|
|||||||
|
|
||||||
static void waitEnter(void)
|
static void waitEnter(void)
|
||||||
{
|
{
|
||||||
|
int unused;
|
||||||
DISPLAY("Press enter to continue...\n");
|
DISPLAY("Press enter to continue...\n");
|
||||||
getchar();
|
unused = getchar();
|
||||||
|
(void)unused;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user