Skip to content

Commit 334ffee

Browse files
committed
mapogcfilter: disable several functions if they are not used
Fixes various -Wunused warnings.
1 parent edc7783 commit 334ffee

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

mapogcfilter.c

+6
Original file line numberDiff line numberDiff line change
@@ -3006,6 +3006,7 @@ void FLTDoAxisSwappingIfNecessary(mapObj *map,
30063006
}
30073007
}
30083008

3009+
#if defined(USE_WMS_SVR) || defined (USE_WFS_SVR) || defined (USE_WCS_SVR) || defined(USE_SOS_SVR)
30093010

30103011
static void FLTReplacePropertyName(FilterEncodingNode *psFilterNode,
30113012
const char *pszOldName,
@@ -3028,6 +3029,7 @@ static void FLTReplacePropertyName(FilterEncodingNode *psFilterNode,
30283029
}
30293030
}
30303031

3032+
#endif
30313033

30323034
static int FLTIsGMLDefaultProperty(const char* pszName)
30333035
{
@@ -3039,6 +3041,8 @@ static int FLTIsGMLDefaultProperty(const char* pszName)
30393041
strcmp(pszName, "@gml:id") == 0);
30403042
}
30413043

3044+
#if defined(USE_WMS_SVR) || defined (USE_WFS_SVR) || defined (USE_WCS_SVR) || defined(USE_SOS_SVR)
3045+
30423046
static void FLTStripNameSpacesFromPropertyName(FilterEncodingNode *psFilterNode)
30433047
{
30443048
char **tokens=NULL;
@@ -3117,6 +3121,8 @@ static void FLTRemoveGroupName(FilterEncodingNode *psFilterNode,
31173121

31183122
}
31193123

3124+
#endif
3125+
31203126
/************************************************************************/
31213127
/* FLTPreParseFilterForAliasAndGroup */
31223128
/* */

mapogcsld.c

+4
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ int msSLDApplySLDURL(mapObj *map, const char *szURL, int iLayer,
124124
#endif
125125
}
126126

127+
#if defined(USE_WMS_SVR) || defined (USE_WFS_SVR) || defined (USE_WCS_SVR) || defined(USE_SOS_SVR)
128+
127129
/* -------------------------------------------------------------------- */
128130
/* If the same layer is given more that once, we need to */
129131
/* duplicate it. */
@@ -164,6 +166,8 @@ static void msSLDApplySLD_DuplicateLayers(mapObj *map, int nSLDLayers, layerObj
164166
}
165167
}
166168

169+
#endif
170+
167171
/************************************************************************/
168172
/* msSLDApplySLD */
169173
/* */

0 commit comments

Comments
 (0)