aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Karney <charles@karney.com>2017-12-14 07:04:54 -0500
committerCharles Karney <charles@karney.com>2017-12-14 07:04:54 -0500
commitd4cc6e3ea21acadc2083ab926d6a9ba28ae468f6 (patch)
tree400990ea0e0cf10a3689591d89a138fc8d3824ec /src
parent5975ff8f0920b1f4b4353f59f45e9033ea784c5f (diff)
downloadPROJ-d4cc6e3ea21acadc2083ab926d6a9ba28ae468f6.tar.gz
PROJ-d4cc6e3ea21acadc2083ab926d6a9ba28ae468f6.zip
Suppress warning C4996 centrally in CMakeLists.txt
Diffstat (limited to 'src')
-rw-r--r--src/PJ_chamb.c5
-rw-r--r--src/PJ_horner.c5
-rw-r--r--src/cct.c4
-rw-r--r--src/gie.c5
-rw-r--r--src/nad2bin.c5
-rw-r--r--src/optargpm.h10
-rw-r--r--src/pj_apply_gridshift.c5
-rw-r--r--src/pj_apply_vgridshift.c5
-rw-r--r--src/pj_datum_set.c5
-rw-r--r--src/pj_fileapi.c5
-rw-r--r--src/pj_gridinfo.c5
-rw-r--r--src/pj_gridlist.c5
-rw-r--r--src/pj_init.c5
-rw-r--r--src/pj_log.c5
-rw-r--r--src/pj_open_lib.c5
-rw-r--r--src/proj_4D_api.c4
16 files changed, 1 insertions, 82 deletions
diff --git a/src/PJ_chamb.c b/src/PJ_chamb.c
index 0a18ecf0..d0b9250e 100644
--- a/src/PJ_chamb.c
+++ b/src/PJ_chamb.c
@@ -3,11 +3,6 @@
#include <proj.h>
#include "projects.h"
-#if defined(_MSC_VER)
-// Squelch warnings about unsafe use of sprintf, etc
-# pragma warning (disable: 4996)
-#endif
-
typedef struct { double r, Az; } VECT;
struct pj_opaque {
struct { /* control point data */
diff --git a/src/PJ_horner.c b/src/PJ_horner.c
index 2f564edf..fe0452d6 100644
--- a/src/PJ_horner.c
+++ b/src/PJ_horner.c
@@ -82,11 +82,6 @@
#include <math.h>
#include <errno.h>
-#if defined(_MSC_VER)
-// Squelch warnings about unsafe use of sprintf, etc
-# pragma warning (disable: 4996)
-#endif
-
PROJ_HEAD(horner, "Horner polynomial evaluation");
/* make horner.h interface with proj's memory management */
diff --git a/src/cct.c b/src/cct.c
index ae294190..a1c275b5 100644
--- a/src/cct.c
+++ b/src/cct.c
@@ -81,10 +81,6 @@ 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);
diff --git a/src/gie.c b/src/gie.c
index fcf78a71..9e377648 100644
--- a/src/gie.c
+++ b/src/gie.c
@@ -119,10 +119,7 @@ Thomas Knudsen, thokn@sdfe.dk, 2017-10-01/2017-10-08
#include <math.h>
#include <errno.h>
-#if defined(_MSC_VER)
-// Squelch warnings about unsafe use of sprintf, etc
-# pragma warning (disable: 4996)
-#endif
+
/* from proj_strtod.c */
double proj_strtod(const char *str, char **endptr);
diff --git a/src/nad2bin.c b/src/nad2bin.c
index 92ceab09..8401df79 100644
--- a/src/nad2bin.c
+++ b/src/nad2bin.c
@@ -2,11 +2,6 @@
#include <stdio.h>
#include <stdlib.h>
-#if defined(_MSC_VER)
-// Squelch warnings about unsafe use of sprintf, etc
-# pragma warning (disable: 4996)
-#endif
-
#define PJ_LIB__
#include "proj_internal.h"
#include "projects.h"
diff --git a/src/optargpm.h b/src/optargpm.h
index c2b23466..acb96583 100644
--- a/src/optargpm.h
+++ b/src/optargpm.h
@@ -193,12 +193,6 @@ 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;
@@ -605,7 +599,3 @@ OPTARGS *opt_parse (int argc, char **argv, const char *flags, const char *keys,
return o;
}
-
-#if defined(_MSC_VER)
-# pragma warning (pop)
-#endif
diff --git a/src/pj_apply_gridshift.c b/src/pj_apply_gridshift.c
index d8bd8b43..a2267cbd 100644
--- a/src/pj_apply_gridshift.c
+++ b/src/pj_apply_gridshift.c
@@ -35,11 +35,6 @@
#include "proj_internal.h"
#include "projects.h"
-#if defined(_MSC_VER)
-// Squelch warnings about unsafe use of sprintf, etc
-# pragma warning (disable: 4996)
-#endif
-
/************************************************************************/
/* pj_apply_gridshift() */
/* */
diff --git a/src/pj_apply_vgridshift.c b/src/pj_apply_vgridshift.c
index d5baf9e8..6435b954 100644
--- a/src/pj_apply_vgridshift.c
+++ b/src/pj_apply_vgridshift.c
@@ -33,11 +33,6 @@
#include "proj_internal.h"
#include "projects.h"
-#if defined(_MSC_VER)
-// Squelch warnings about unsafe use of sprintf, etc
-# pragma warning (disable: 4996)
-#endif
-
static double pj_read_vgrid_value( PJ *defn, LP input, int *gridlist_count_p, PJ_GRIDINFO **tables, struct CTABLE *ct) {
int itable = 0;
double value = HUGE_VAL;
diff --git a/src/pj_datum_set.c b/src/pj_datum_set.c
index 1622364c..c2fb1608 100644
--- a/src/pj_datum_set.c
+++ b/src/pj_datum_set.c
@@ -29,11 +29,6 @@
#include <projects.h>
#include <string.h>
-#if defined(_MSC_VER)
-// Squelch warnings about unsafe use of sprintf, etc
-# pragma warning (disable: 4996)
-#endif
-
/* SEC_TO_RAD = Pi/180/3600 */
#define SEC_TO_RAD 4.84813681109535993589914102357e-6
diff --git a/src/pj_fileapi.c b/src/pj_fileapi.c
index 9fd6a2b4..e223993e 100644
--- a/src/pj_fileapi.c
+++ b/src/pj_fileapi.c
@@ -30,11 +30,6 @@
#include <projects.h>
#include <string.h>
-#if defined(_MSC_VER)
-// Squelch warnings about unsafe use of sprintf, etc
-# pragma warning (disable: 4996)
-#endif
-
static PAFile pj_stdio_fopen(projCtx ctx, const char *filename,
const char *access);
static size_t pj_stdio_fread(void *buffer, size_t size, size_t nmemb,
diff --git a/src/pj_gridinfo.c b/src/pj_gridinfo.c
index 9d69876e..9b9a8d82 100644
--- a/src/pj_gridinfo.c
+++ b/src/pj_gridinfo.c
@@ -34,11 +34,6 @@
#include <math.h>
#include <errno.h>
-#if defined(_MSC_VER)
-// Squelch warnings about unsafe use of sprintf, etc
-# pragma warning (disable: 4996)
-#endif
-
/************************************************************************/
/* swap_words() */
/* */
diff --git a/src/pj_gridlist.c b/src/pj_gridlist.c
index 5bc608d7..fbefdcea 100644
--- a/src/pj_gridlist.c
+++ b/src/pj_gridlist.c
@@ -33,11 +33,6 @@
#include <string.h>
#include <math.h>
-#if defined(_MSC_VER)
-// Squelch warnings about unsafe use of sprintf, etc
-# pragma warning (disable: 4996)
-#endif
-
static PJ_GRIDINFO *grid_list = NULL;
#define PJ_MAX_PATH_LENGTH 1024
diff --git a/src/pj_init.c b/src/pj_init.c
index a72dbec1..2d588ee4 100644
--- a/src/pj_init.c
+++ b/src/pj_init.c
@@ -36,11 +36,6 @@
#include "proj_internal.h"
#include "projects.h"
-#if defined(_MSC_VER)
-// Squelch warnings about unsafe use of sprintf, etc
-# pragma warning (disable: 4996)
-#endif
-
/* Maximum size of files using the "escape carriage return" feature */
#define MAX_CR_ESCAPE 65537
typedef struct {
diff --git a/src/pj_log.c b/src/pj_log.c
index 3c4b7213..bab5f078 100644
--- a/src/pj_log.c
+++ b/src/pj_log.c
@@ -30,11 +30,6 @@
#include <string.h>
#include <stdarg.h>
-#if defined(_MSC_VER)
-// Squelch warnings about unsafe use of sprintf, etc
-# pragma warning (disable: 4996)
-#endif
-
/************************************************************************/
/* pj_stderr_logger() */
/************************************************************************/
diff --git a/src/pj_open_lib.c b/src/pj_open_lib.c
index 35d0341f..08532beb 100644
--- a/src/pj_open_lib.c
+++ b/src/pj_open_lib.c
@@ -35,11 +35,6 @@
#include <string.h>
#include <errno.h>
-#if defined(_MSC_VER)
-// Squelch warnings about unsafe use of sprintf, etc
-# pragma warning (disable: 4996)
-#endif
-
static const char *(*pj_finder)(const char *) = NULL;
static int path_count = 0;
static char **search_path = NULL;
diff --git a/src/proj_4D_api.c b/src/proj_4D_api.c
index 34c03db2..5f4bf334 100644
--- a/src/proj_4D_api.c
+++ b/src/proj_4D_api.c
@@ -34,10 +34,6 @@
#include "projects.h"
#include "geodesic.h"
-#if defined(_MSC_VER)
-// Squelch warnings about unsafe use of sprintf, etc
-# pragma warning (disable: 4996)
-#endif
/* Initialize PJ_COORD struct */
PJ_COORD proj_coord (double x, double y, double z, double t) {