Fix some compiler warnings, and suppress a few others for MSVC

This commit is contained in:
Chris Cannam
2023-12-15 20:32:57 +00:00
parent 97091aebe8
commit 91db97f8f5
6 changed files with 15 additions and 4 deletions

View File

@@ -35,6 +35,10 @@
#include <stdlib.h>
#include <string.h>
#ifdef _MSC_VER
#pragma warning (disable: 4131; disable: 4706)
#endif
int opterr = 1, /* if error message should be printed */
optind = 1, /* index into parent argv vector */
optopt, /* character checked for validity */