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

PostGIS trac at osgeo.org
Thu Jan 28 06:43:09 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        
 Keywords:  shp2pgsql - gcc warning  |  
-------------------------------------+--------------------------------------
 {{{
 shpopen.c: In function 'SHPOpen':
 shpopen.c:456: warning: ignoring return value of 'fread', declared with
 attribute warn_unused_result
 shpopen.c:466: warning: ignoring return value of 'fread', declared with
 attribute warn_unused_result
 shpopen.c:545: warning: ignoring return value of 'fread', declared with
 attribute warn_unused_result
 shpopen.c: In function 'SHPReadObject':
 shpopen.c:1327: warning: ignoring return value of 'fread', declared with
 attribute warn_unused_result
 dbfopen.c: In function 'DBFUpdateHeader':
 dbfopen.c:337: warning: ignoring return value of 'fread', declared with
 attribute warn_unused_result
 dbfopen.c: In function 'DBFClose':
 dbfopen.c:520: warning: ignoring return value of 'fread', declared with
 attribute warn_unused_result
 dbfopen.c: In function 'DBFWriteAttribute':
 dbfopen.c:1114: warning: ignoring return value of 'fread', declared with
 attribute warn_unused_result
 dbfopen.c: In function 'DBFWriteAttributeDirectly':
 dbfopen.c:1283: warning: ignoring return value of 'fread', declared with
 attribute warn_unused_result
 dbfopen.c: In function 'DBFWriteTuple':
 dbfopen.c:1429: warning: ignoring return value of 'fread', declared with
 attribute warn_unused_result
 dbfopen.c: In function 'DBFReadTuple':
 dbfopen.c:1473: warning: ignoring return value of 'fread', declared with
 attribute warn_unused_result
 getopt.c: In function 'pgis_getopt':
 getopt.c:69: warning: ignoring return value of 'write', declared with
 attribute warn_unused_result
 getopt.c:69: warning: ignoring return value of 'write', declared with
 attribute warn_unused_result
 getopt.c:69: warning: ignoring return value of 'write', declared with
 attribute warn_unused_result
 getopt.c:80: warning: ignoring return value of 'write', declared with
 attribute warn_unused_result
 getopt.c:80: warning: ignoring return value of 'write', declared with
 attribute warn_unused_result
 getopt.c:80: warning: ignoring return value of 'write', declared with
 attribute warn_unused_result
 }}}



 {{{
 $gcc --version
 gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1
 Copyright (C) 2009 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
 PURPOSE.

 $ uname -a
 Linux ns39258.ovh.net 2.6.31.5-grsec-xxxx-std-ipv4-64 #1 SMP Thu Oct 29
 16:55:22 UTC 2009 x86_64 GNU/Linux
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/396>
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