build warnings report on latest CVS
Kralidis,Tom [Burlington]
Tom.Kralidis at EC.GC.CA
Mon Oct 24 20:59:56 EDT 2005
Below are snippets of source code which produced warnings when compiling
latest CVS (24 October 2005) on Fedora Linux:
$ uname -a
Linux somehost 2.6.10-1.12_FC2 #1 Wed Feb 2 01:13:49 EST 2005 i686 i686
i386 GNU/Linux
$ ./configure --enable-debug
--with-freetype=/usr/local/bin/freetype-config --with-zlib=/usr/local/
--with-png=/usr/local/ --with-jpeg=/usr/local/ --with-xpm=/usr/local/
--with-gd=/usr/local --with-pdf=/usr/local --with-eppl
--with-proj=/usr/local --with-ogr=/usr/local/bin/gdal-config
--with-gdal=/usr/local/bin/gdal-config --without-tiff
--with-postgis=/usr/local/pgsql/bin/pg_config --with-wfs --with-wcs
--with-wmsclient --with-wfsclient
--with-curl-config=/usr/local/bin/curl-config
--with-php=/usr/local/src/php/php-5.0.5
...
$ make
...
gcc -c -g -O2 -fPIC -Wall -DENABLE_STDERR_DEBUG -DIGNORE_MISSING_DATA
-DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR
-DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_GD_GIF -DUSE_GD_PNG
-DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS -DUSE_PDF -DUSE_OGR -DUSE_GDAL -DUSE_ICONV
-DUSE_POSTGIS -DUSE_ZLIB -I/usr/local/include -I/usr/local/include
-I/usr/local/include -I/usr/local/include
-I/usr/local/pgsql/include -I/usr/local/include
-I/usr/local//include mapdraw.c -o mapdraw.o
mapdraw.c: In function `msDrawMap':
mapdraw.c:462: warning: implicit declaration of function
`msDrawWMSLayerPDF'
...
gcc -c -g -O2 -fPIC -Wall -DENABLE_STDERR_DEBUG -DIGNORE_MISSING_DATA
-DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR
-DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_GD_GIF -DUSE_GD_PNG
-DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS -DUSE_PDF -DUSE_OGR -DUSE_GDAL -DUSE_ICONV
-DUSE_POSTGIS -DUSE_ZLIB -I/usr/local/include -I/usr/local/include
-I/usr/local/include -I/usr/local/include
-I/usr/local/pgsql/include -I/usr/local/include
-I/usr/local//include mapgd.c -o mapgd.o
mapgd.c: In function `msCircleDrawLineSymbolGD':
mapgd.c:1057: warning: unused variable `oldsymbol'
mapgd.c:1062: warning: unused variable `max_size'
mapgd.c:1062: warning: unused variable `angle'
mapgd.c: In function `msCircleDrawShadeSymbolGD':
mapgd.c:1203: warning: unused variable `oldsymbol'
mapgd.c:1212: warning: unused variable `max_size'
mapgd.c:1212: warning: unused variable `angle'
mapgd.c: In function `msDrawShadeSymbolGD':
mapgd.c:1834: warning: unused variable `oldsymbol'
mapgd.c:1842: warning: unused variable `max_size'
mapgd.c:1842: warning: unused variable `angle'
mapgd.c: At top level:
mapgd.c:3342: warning: `msFixedImageCopy' defined but not used
...
gcc -c -g -O2 -fPIC -Wall -DENABLE_STDERR_DEBUG -DIGNORE_MISSING_DATA
-DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR
-DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_GD_GIF -DUSE_GD_PNG
-DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS -DUSE_PDF -DUSE_OGR -DUSE_GDAL -DUSE_ICONV
-DUSE_POSTGIS -DUSE_ZLIB -I/usr/local/include -I/usr/local/include
-I/usr/local/include -I/usr/local/include
-I/usr/local/pgsql/include -I/usr/local/include
-I/usr/local//include mappdf.c -o mappdf.o
mappdf.c: In function `msDrawTextPDF':
mappdf.c:1350: warning: assignment makes integer from pointer without a
cast
...
gcc -c -g -O2 -fPIC -Wall -DENABLE_STDERR_DEBUG -DIGNORE_MISSING_DATA
-DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR
-DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_GD_GIF -DUSE_GD_PNG
-DUSE_GD_JPEG -DUSE_GD_WBM
P -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_PDF
-DUSE_OGR -DUSE_GDAL -DUSE_ICONV -DUSE_POSTGIS -DUSE_ZLIB
-I/usr/local/include -I/usr/local/include -I/usr/local/include
-I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include
-I/usr/local//include mapogcfilter.c -o mapogcfilter.o
mapogcfilter.c: In function `FLTApplyFilterToLayer':
mapogcfilter.c:1110: warning: unused variable `sttt'
...
gcc -c -g -O2 -fPIC -Wall -DENABLE_STDERR_DEBUG -DIGNORE_MISSING_DATA
-DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR
-DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_GD_GIF -DUSE_GD_PNG
-DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS -DUSE_PDF -DUSE_OGR -DUSE_GDAL -DUSE_ICONV
-DUSE_POSTGIS -DUSE_ZLIB -I/usr/local/include -I/usr/local/include
-I/usr/local/include -I/usr/local/include
-I/usr/local/pgsql/include -I/usr/local/include
-I/usr/local//include maptime.c -o maptime.o
maptime.c: In function `msStrptime':
maptime.c:169: warning: implicit declaration of function `strptime'
maptime.c:169: warning: return makes pointer from integer without a cast
...
gcc -c -g -O2 -fPIC -Wall -DENABLE_STDERR_DEBUG -DIGNORE_MISSING_DATA
-DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR
-DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_GD_GIF -DUSE_GD_PNG
-DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS -DUSE_PDF -DUSE_OGR -DUSE_GDAL -DUSE_ICONV
-DUSE_POSTGIS -DUSE_ZLIB -I/usr/local/include -I/usr/local/include
-I/usr/local/include -I/usr/local/include
-I/usr/local/pgsql/include -I/usr/local/include
-I/usr/local//include mapsvg.c -o mapsvg.o
mapsvg.c:821: warning: `gdTcl_UtfToUniChar' defined but not used
...
gcc -fPIC -g -O2 -fPIC -Wall -DUSE_PHP_REGEX -DCOMPILE_DL=1 -DPHP4
-DENABLE_STDERR_DEBUG -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_WCS_SVR
-DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_POSTGIS -DUSE_GDAL -DUSE_OGR
-DUSE_PROJ -DUSE_EPPL -DUSE_PDF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG
-DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS
-DUSE_ICONV -DUSE_ZLIB -I/usr/local/src/mapserver/cvs/mapserver
-I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include
-I/usr/local/include -I/usr/local/include -I/usr/local/include
-I/usr/local//include -I/usr/local/src/php/php-5.0.5
-I/usr/local/src/php/php-5.0.5/dl -I/usr/local/src/php/php-5.0.5/main
-I/usr/local/src/php/php-5.0.5/Zend
-I/usr/local/src/php/php-5.0.5/include
-I/usr/local/src/php/php-5.0.5/TSRM -c -o php_mapscript.o
php_mapscript.c
php_mapscript.c: In function `php3_ms_img_saveImage':
php_mapscript.c:6167: warning: `tmp' might be used uninitialized in this
function
php_mapscript.c: In function `php3_ms_symbol_setImagepath':
php_mapscript.c:13756: warning: unused variable `pValue'
...
More information about the mapserver-dev
mailing list