build warnings in source code
Kralidis,Tom [Burlington]
Tom.Kralidis at EC.GC.CA
Thu Nov 4 16:25:21 EST 2004
Hi,
Compiling latest CVS (04/Nov/2004) on FC2, with 'make clean', then:
./configure --with-freetype=/usr/local/bin/freetype-config
--with-zlib=/usr/local --with-png=/usr/lo
cal --with-jpeg=/usr/local --with-xpm=/usr/local --with-gd=/usr/local
--with-pdf=/usr/local --with-e
ppl --with-proj=/usr/local --with-gdal=/usr/local/bin/gdal-config
--with-ogr=/usr/local/bin/gdal-con
fig --with-postgis=/usr/local/pgsql/bin/pg_config --with-wfs --with-wcs
--with-wmsclient --with-wfsc
lient --without-tiff --with-curl-config=/usr/local/bin/curl-config
[root at devgeo mapserver]#
...then 'make', most of the build goes okay, but some source code has
some warnings. None of these are really new, but I thought I'd catch
them all and summarize them to this list. Most look like simple stuff:
maplegend.c: In function `msDrawLegend':
maplegend.c:233: warning: unused variable `empty_legend'
mapwms.c: In function `msDumpLayer':
mapwms.c:1086: warning: `pszMetadataName' might be used uninitialized in
this function
mapprojhack.c:111: warning: missing braces around initializer
mapprojhack.c:111: warning: (near initialization for `pj_units_copy[0]')
mapdraw.c: In function `msDrawMap':
mapdraw.c:386: warning: implicit declaration of function
`msDrawWMSLayerPDF'
mappdf.c: In function `msSaveImagePDF':
mappdf.c:1208: warning: unused variable `out'
mappdf.c: In function `msDrawTextPDF':
mappdf.c:1337: warning: assignment makes integer from pointer without a
cast
maptime.c: In function `msStrptime':
maptime.c:157: warning: implicit declaration of function `strptime'
maptime.c:157: warning: return makes pointer from integer without a cast
mapwcs.c: In function `msWCSDispatch':
mapwcs.c:1087: warning: unused variable `status'
shp2pdf.c: In function `main':
shp2pdf.c:76: warning: unused variable `img'
shp2pdf.c:83: warning: unused variable `pdf'
shp2pdf.c:88: warning: unused variable `MapScaleFactor'
shp2pdf.c:89: warning: unused variable `MapPixelSize'
mapserv.c: In function `main':
mapserv.c:1051: warning: unused variable `sname'
Cheers
..Tom
More information about the mapserver-dev
mailing list