Permalink
Browse files

fix some compiler warnings

  • Loading branch information...
1 parent adf808c commit e3633571ad4f6bf55a2f7339b5d518542c56f5cf @tbonfort tbonfort committed Jul 22, 2013
Showing with 5 additions and 2 deletions.
  1. +5 −2 mapcairo.c
View
@@ -380,7 +380,10 @@ int renderSVGSymbolCairo(imageObj *img, double x, double y, symbolObj *symbol,
status = svg_cairo_render(cache->svgc, r->cr);
cairo_restore(r->cr);
- return MS_SUCCESS;
+ if(status == SVG_CAIRO_STATUS_SUCCESS)
+ return MS_SUCCESS;
+ else
+ return MS_FAILURE;
#else
msSetError(MS_MISCERR, "SVG Symbols requested but is not built with libsvgcairo",
@@ -1108,7 +1111,7 @@ int msPreloadSVGSymbol(symbolObj *symbol)
rewind(stream);
symbol->svg_text = (char*) msSmallMalloc(sizeof (char) * file_len);
if (1 != fread(symbol->svg_text, file_len, 1, stream)) {
- msSetError(MS_IOERR, "failed to read %d bytes from svg file %s", "loadSymbol()", file_len, symbol->full_pixmap_path);
+ msSetError(MS_IOERR, "failed to read %lu bytes from svg file %s", "loadSymbol()", file_len, symbol->full_pixmap_path);
free(symbol->svg_text);
return MS_FAILURE;
}

0 comments on commit e363357

Please sign in to comment.