From f95af0e1f166a971a1006881ccb3e56d7d150ad7 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Wed, 22 Jul 2015 12:37:38 +0000 Subject: [PATCH] Quiet warning about dynamic array (const doesn't do what you think it does in this context) git-svn-id: http://svn.osgeo.org/postgis/trunk@13823 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/lwprint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liblwgeom/lwprint.c b/liblwgeom/lwprint.c index f44b3b303..d7763ac62 100644 --- a/liblwgeom/lwprint.c +++ b/liblwgeom/lwprint.c @@ -56,8 +56,8 @@ static void lwprint_normalize_latlon(double *lat, double *lon) static char * lwdouble_to_dms(double val, const char *pos_dir_symbol, const char *neg_dir_symbol, const char * format) { /* 3 numbers, 1 sign or compass dir, and 5 possible strings (degree signs, spaces, misc text, etc) between or around them.*/ - const int NUM_PIECES = 9; - const int WORK_SIZE = 1024; + static int NUM_PIECES = 9; + static int WORK_SIZE = 1024; char pieces[NUM_PIECES][WORK_SIZE]; int current_piece = 0; int is_negative = 0; -- 2.50.1