]> granicus.if.org Git - postgis/commitdiff
Quiet warning about dynamic array (const doesn't do what you think it does in this...
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 22 Jul 2015 12:37:38 +0000 (12:37 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 22 Jul 2015 12:37:38 +0000 (12:37 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13823 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwprint.c

index f44b3b303c58075a9a80265cafbd555557738158..d7763ac62e9fc926c59c127341b3b2aa7582644a 100644 (file)
@@ -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;