[postgis-devel] [PostGIS] #396: GCC warning - shp2pgsql

PostGIS trac at osgeo.org
Thu Jan 28 06:53:28 PST 2010


#396: GCC warning - shp2pgsql
-----------------------+----------------------------------------------------
  Reporter:  colivier  |       Owner:  pramsey                
      Type:  task      |      Status:  new                    
  Priority:  low       |   Milestone:  PostGIS 1.5.1          
 Component:  postgis   |     Version:  trunk                  
Resolution:            |    Keywords:  shp2pgsql - gcc warning
-----------------------+----------------------------------------------------
Comment (by mloskot):

 This is a well-known warning in Shapelib (so also in GDAL/OGR).

 The modern versions of GCC are getting stricter from version to version.
 It says it's a bad idea to ignore return value from any function which may
 fail in run-time, especially filesystem I/O calls. And it is a bad idea,
 but most of the legacy code base do not care about it. The only option
 here is to ignore it or submit patch to Shapelib.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/396#comment:1>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list