Skip to content
Permalink
Browse files
Fix 2 warnings raised by gcc 7.5
  • Loading branch information
github-actions[bot] committed Jul 8, 2020
1 parent 79652b1 commit d08e128029c6608d7362dfd218a91d95005d126b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
@@ -1021,17 +1021,18 @@ int msWMSLoadGetMapParams(mapObj *map, int nVersion,
if (strcasecmp(names[i], "SLD") == 0 || strcasecmp(names[i], "SLD_BODY") == 0) {
sldenabled = msOWSLookupMetadata(&(map->web.metadata), "MO", "sld_enabled");

if (sldenabled == NULL)
if (sldenabled == NULL) {
sldenabled = "true";
}

if (strcasecmp(sldenabled, "true") == 0) {
if (strcasecmp(names[i], "SLD") == 0) {
sld_url = values[i];
}
if (strcasecmp(names[i], "SLD_BODY") == 0) {
sld_body = values[i];
}
if (strcasecmp(sldenabled, "true") == 0) {
if (strcasecmp(names[i], "SLD") == 0) {
sld_url = values[i];
}
if (strcasecmp(names[i], "SLD_BODY") == 0) {
sld_body = values[i];
}
}
}
}

@@ -156,8 +156,8 @@ namespace mapserver

double ct2_x = 0;
double ct2_y = 0;
double end_x;
double end_y;
double end_x = 0;
double end_y = 0;

unsigned cmd = m_source->vertex(x, y);
switch(cmd)

0 comments on commit d08e128

Please sign in to comment.