[postgis-tickets] [PostGIS] #2892: cunit for cu_varint warnings

PostGIS trac at osgeo.org
Sun Aug 10 22:33:08 PDT 2014


#2892: cunit for cu_varint warnings
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.2.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------
 These show on winnie after r12883 commit.  Haven't checked debbie.  I
 think these ones are my fault :( since I had taken out the
 hexbytes_from_bytes def in cu_varint.c at r12871 because I saw it already
 defined.

 {{{
 cu_varint.c:34:2: warning: implicit declaration of function
 'hexbytes_from_bytes' [-Wimplicit-function-declaration]
   hex = hexbytes_from_bytes(buf,size);
   ^
 cu_varint.c:34:6: warning: assignment makes pointer from integer without a
 cast [enabled by default]
   hex = hexbytes_from_bytes(buf,size);
       ^
 cu_varint.c:39:3: warning: implicit declaration of function 'lwfree'
 [-Wimplicit-function-declaration]
    lwfree(hex);
    ^
 cu_varint.c: In function 'do_test_s32_varint':
 cu_varint.c:54:6: warning: assignment makes pointer from integer without a
 cast [enabled by default]
   hex = hexbytes_from_bytes(buf,size);
       ^
 cu_varint.c: In function 'do_test_u64_varint':
 cu_varint.c:74:6: warning: assignment makes pointer from integer without a
 cast [enabled by default]
   hex = hexbytes_from_bytes(buf,size);
       ^
 cu_varint.c: In function 'do_test_s64_varint':
 cu_varint.c:94:6: warning: assignment makes pointer from integer without a
 cast [enabled by default]
   hex = hexbytes_from_bytes(buf,size);
       ^
 cu_varint.c: In function 'test_varint':
 cu_varint.c:152:2: warning: this decimal constant is unsigned only in ISO
 C90 [enabled by default]
   do_test_s32_varint(-2147483648, 5, "FFFFFFFF0F");
   ^
 }}}

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