[postgis-tickets] [PostGIS] #2669: cunit warnings unsigned int ISO C90 assumption and extra tokens

PostGIS trac at osgeo.org
Sun Mar 9 14:17:01 PDT 2014


#2669: cunit warnings unsigned int ISO C90 assumption and extra tokens
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.2.0
Component:  postgis  |     Version:  2.1.x        
 Keywords:           |  
---------------------+------------------------------------------------------
 I'm seeing some annoying warnings on winnie's compile.  They probably are
 harmless since they are on cunit, but could possibly cause false negatives


 {{{
 cu_tree.c:19:24: warning: extra tokens at end of #include directive
 [enabled by default]
  #include "lwgeodetic.h";
                         ^
 cu_tree.c:20:29: warning: extra tokens at end of #include directive
 [enabled by default]
  #include "lwgeodetic_tree.h";

 cu_algorithm.c: In function 'test_geohash_point_as_int':
 cu_algorithm.c:889:2: warning: this decimal constant is unsigned only in
 ISO C90 [enabled by default]
   CU_ASSERT_EQUAL(gh, (unsigned int)3440103613);
   ^
 cu_algorithm.c:892:2: warning: this decimal constant is unsigned only in
 ISO C90 [enabled by default]
   CU_ASSERT_EQUAL(gh, (unsigned int)3982480893);
   ^
 cu_algorithm.c:895:2: warning: this decimal constant is unsigned only in
 ISO C90 [enabled by default]
   CU_ASSERT_EQUAL(gh, (unsigned int)4166944232);
   ^
 }}}

 Note that winnie is running gcc 4.8.0 for 9.3 builds and I think gcc 4.8
 throws more warnings about using legacy constructs.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2669>
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-tickets mailing list