[postgis-devel] [PostGIS] #1984: geography_btree.c: array subscript is above array bounds [-Warray-bounds]

PostGIS trac at osgeo.org
Sat Nov 17 16:35:06 PST 2012


#1984: geography_btree.c: array subscript is above array bounds [-Warray-bounds]
---------------------+------------------------------------------------------
 Reporter:  strk     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.1.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by pramsey):

 The code itself is perfectly legal and good and well tested, it's just a
 compiler warning. Changing the code is dangerous, since it works fine.
 Using some other C construct to express the intent might quiet the warning
 on the newer gcc compilers but break our compilation on other ones.
 Definitely a 2.1 thing.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1984#comment:4>
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