[mapserver-commits] r13065 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Mon Feb 6 14:49:21 EST 2012


Author: tbonfort
Date: 2012-02-06 11:49:21 -0800 (Mon, 06 Feb 2012)
New Revision: 13065

Modified:
   trunk/mapserver/mapserv.h
   trunk/mapserver/mapservutil.c
Log:
fix unused variable warning


Modified: trunk/mapserver/mapserv.h
===================================================================
--- trunk/mapserver/mapserv.h	2012-02-06 19:39:02 UTC (rev 13064)
+++ trunk/mapserver/mapserv.h	2012-02-06 19:49:21 UTC (rev 13065)
@@ -52,15 +52,6 @@
 */
 #define TEMPLATE_TYPE(s)  (((strncmp("http://", s, 7) == 0) || (strncmp("https://", s, 8) == 0) || (strncmp("ftp://", s, 6)) == 0)  ? MS_URL : MS_FILE)
 
-/*
-** Enumerated types, keep the query modes in sequence and at the end of the enumeration (mode enumeration is in maptemplate.h).
-*/
-static int numModes = 21;
-static char *modeStrings[21] = {"BROWSE","ZOOMIN","ZOOMOUT","MAP","LEGEND","LEGENDICON","REFERENCE","SCALEBAR","COORDINATE",
-                                "QUERY","NQUERY","ITEMQUERY","ITEMNQUERY",
-				"FEATUREQUERY","FEATURENQUERY","ITEMFEATUREQUERY","ITEMFEATURENQUERY",
-				"INDEXQUERY","TILE","OWS", "WFS"};
-
 MS_DLL_EXPORT int msCGIWriteLog(mapservObj *mapserv, int show_error);
 MS_DLL_EXPORT void msCGIWriteError(mapservObj *mapserv);
 MS_DLL_EXPORT mapObj *msCGILoadMap(mapservObj *mapserv);

Modified: trunk/mapserver/mapservutil.c
===================================================================
--- trunk/mapserver/mapservutil.c	2012-02-06 19:39:02 UTC (rev 13064)
+++ trunk/mapserver/mapservutil.c	2012-02-06 19:49:21 UTC (rev 13065)
@@ -32,7 +32,17 @@
 #include "mapserv.h"
 #include "maptime.h"
 
+/*
+** Enumerated types, keep the query modes in sequence and at the end of the enumeration (mode enumeration is in maptemplate.h).
+*/
+static int numModes = 21;
+static char *modeStrings[21] = {"BROWSE","ZOOMIN","ZOOMOUT","MAP","LEGEND","LEGENDICON","REFERENCE","SCALEBAR","COORDINATE",
+                                "QUERY","NQUERY","ITEMQUERY","ITEMNQUERY",
+				"FEATUREQUERY","FEATURENQUERY","ITEMFEATUREQUERY","ITEMFEATURENQUERY",
+				"INDEXQUERY","TILE","OWS", "WFS"};
 
+
+
 int msCGIWriteLog(mapservObj *mapserv, int show_error)
 {
   FILE *stream;



More information about the mapserver-commits mailing list