[gdal-dev] Compiler warnings for dgnhelp.cpp ogrgeometryfactory.cpp ogrspatialreference.cpp

Dane Springmeyer blake at hailmail.net
Fri Oct 24 15:18:02 EDT 2008


Gdal-dev,

I just had occasion to rebuild gdal from SVN trunk on Mac OS 10.5,  
which worked great.

I thought perhaps recording a few of the warnings might be useful.

Pasted below.

Dane


[...snip...]

libtool: compile:  g++ -g -O2 -Wall -I.. -I../.. -I/Users/spring/src/ 
gdal/port -I/Users/spring/src/gdal/gcore -I/Users/spring/src/gdal/alg - 
I/Users/spring/src/gdal/ogr -I/Users/spring/src/gdal/ogr/ogrsf_frmts - 
DOGR_ENABLED -D_REENTRANT -I/Users/spring/src/gdal/port -c  
dgnhelp.cpp  -fno-common -DPIC -o ../o/.libs/dgnhelp.o
dgnhelp.cpp: In function 'void DGNDumpElement(void*, DGNElemCore*,  
FILE*)':
dgnhelp.cpp:1052: warning: too many arguments for format

[...snip...]

libtool: compile:  g++ -DHAVE_MITAB -g -O2 -Wall -Iogrsf_frmts -I. -I/ 
Users/spring/src/gdal/port -I/Users/spring/src/gdal/gcore -I/Users/ 
spring/src/gdal/alg -I/Users/spring/src/gdal/ogr -I/Users/spring/src/ 
gdal/ogr/ogrsf_frmts -DPROJ_STATIC -DHAVE_GEOS=1 -I/usr/local/include - 
DOGR_ENABLED -D_REENTRANT -I/Users/spring/src/gdal/port -c  
ogrgeometryfactory.cpp  -fno-common -DPIC -o .libs/ogrgeometryfactory.o
ogrgeometryfactory.cpp: In static member function 'static OGRErr  
OGRGeometryFactory::createFromFgf(unsigned char*,  
OGRSpatialReference*, OGRGeometry**, int, int*)':
ogrgeometryfactory.cpp:1583: warning: 'poGC' may be used uninitialized  
in this function

[...snip...]

libtool: compile:  g++ -DHAVE_MITAB -g -O2 -Wall -Iogrsf_frmts -I. -I/ 
Users/spring/src/gdal/port -I/Users/spring/src/gdal/gcore -I/Users/ 
spring/src/gdal/alg -I/Users/spring/src/gdal/ogr -I/Users/spring/src/ 
gdal/ogr/ogrsf_frmts -DPROJ_STATIC -DHAVE_GEOS=1 -I/usr/local/include - 
DOGR_ENABLED -D_REENTRANT -I/Users/spring/src/gdal/port -c  
ogrspatialreference.cpp  -fno-common -DPIC -o .libs/ 
ogrspatialreference.o
ogrspatialreference.cpp: In member function 'const char*  
OGRSpatialReference::GetAxis(const char*, int, OGRAxisOrientation*)':
ogrspatialreference.cpp:5654: warning: 'poAxis' may be used  
uninitialized in this function


More information about the gdal-dev mailing list