aboutsummaryrefslogtreecommitdiff
path: root/src/optargpm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/optargpm.h')
-rw-r--r--src/optargpm.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/optargpm.h b/src/optargpm.h
index acb96583..c2b23466 100644
--- a/src/optargpm.h
+++ b/src/optargpm.h
@@ -193,6 +193,12 @@ Thomas Knudsen, thokn@sdfe.dk, 2016-05-25/2017-09-10
#include <math.h>
#include <errno.h>
+#if defined(_MSC_VER)
+// Squelch warnings about unsafe use of sprintf, etc
+# pragma warning (push)
+# pragma warning (disable: 4996)
+#endif
+
/**************************************************************************************************/
struct OPTARGS;
typedef struct OPTARGS OPTARGS;
@@ -599,3 +605,7 @@ OPTARGS *opt_parse (int argc, char **argv, const char *flags, const char *keys,
return o;
}
+
+#if defined(_MSC_VER)
+# pragma warning (pop)
+#endif