aboutsummaryrefslogtreecommitdiff
path: root/src/cct.c
diff options
context:
space:
mode:
authorCharles Karney <charles@karney.com>2017-12-07 11:11:16 -0500
committerCharles Karney <charles@karney.com>2017-12-07 11:11:16 -0500
commit5975ff8f0920b1f4b4353f59f45e9033ea784c5f (patch)
tree2a017dceaeb2cc8625e13100369664584583a0f9 /src/cct.c
parentcbb497636ec29f5350864b128e7d09d603f6a15d (diff)
downloadPROJ-5975ff8f0920b1f4b4353f59f45e9033ea784c5f.tar.gz
PROJ-5975ff8f0920b1f4b4353f59f45e9033ea784c5f.zip
Squelch Visual Studio's obnoxious warnings about sprintf being unsafe.
Also set policy CMP0054 to stop a cmake warning.
Diffstat (limited to 'src/cct.c')
-rw-r--r--src/cct.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cct.c b/src/cct.c
index a1c275b5..ae294190 100644
--- a/src/cct.c
+++ b/src/cct.c
@@ -81,6 +81,10 @@ Thomas Knudsen, thokn@sdfe.dk, 2016-05-25/2017-10-26
#include <string.h>
#include <math.h>
+#if defined(_MSC_VER)
+// Squelch warnings about unsafe use of sprintf, etc
+# pragma warning (disable: 4996)
+#endif
double proj_strtod(const char *str, char **endptr);
double proj_atof(const char *str);