[postgis-tickets] [PostGIS] #2880: cu_varint warnings

PostGIS trac at osgeo.org
Thu Aug 7 16:57:16 PDT 2014


#2880: cu_varint warnings
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  nicklas      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.2.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by robe):

 before the change  r12871 I made to get rid of varint.h

 used to give these warnings:


 {{{
 In file included from cu_varint.c:23:0:
 ../varint.h:62:1: warning: no previous prototype for
 'varint_u32_encoded_size' [-Wmissing-prototypes]
  varint_u32_encoded_size(uint32_t val)
  ^
 ../varint.h:75:1: warning: no previous prototype for
 'varint_u32_encode_buf' [-Wmissing-prototypes]
  varint_u32_encode_buf(uint32_t val, uint8_t *buf)
  ^
 ../varint.h:82:1: warning: no previous prototype for
 'varint_s32_encoded_size' [-Wmissing-prototypes]
  varint_s32_encoded_size(int32_t val)
  ^
 ../varint.h:96:1: warning: no previous prototype for
 'varint_s32_encode_buf' [-Wmissing-prototypes]
  varint_s32_encode_buf(int32_t val, uint8_t *buf)
  ^
 ../varint.h:104:1: warning: no previous prototype for
 'varint_s64_encoded_size' [-Wmissing-prototypes]
  varint_s64_encoded_size(int64_t val)
  ^
 ../varint.h:118:1: warning: no previous prototype for
 'varint_s64_encode_buf' [-Wmissing-prototypes]
  varint_s64_encode_buf(int64_t val, uint8_t *buf)
  ^
 ../varint.h:127:1: warning: no previous prototype for
 'varint_u64_encoded_size' [-Wmissing-prototypes]
  varint_u64_encoded_size(uint64_t val)
  ^
 ../varint.h:140:1: warning: no previous prototype for
 'varint_u64_encode_buf' [-Wmissing-prototypes]
  varint_u64_encode_buf(uint64_t val, uint8_t *buf)
  ^
 cu_varint.c: In function 'test_varint':
 cu_varint.c:156: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/2880#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-tickets mailing list