[postgis-tickets] [PostGIS] #3696: Topology compiler warnings

PostGIS trac at osgeo.org
Mon Jan 23 11:09:40 PST 2017


#3696: Topology compiler warnings
---------------------+---------------------------
 Reporter:  dbaston  |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  medium   |  Milestone:  PostGIS 2.4.0
Component:  postgis  |    Version:  trunk
 Keywords:           |
---------------------+---------------------------
 Seen with gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609

 {{{
 postgis_topology.c: In function 'cb_insertNodes':
 postgis_topology.c:1439:26: warning: format '%u' expects argument of type
 'unsigned int', but argument 3 has type 'uint64 {aka long unsigned int}'
 [-Wformat=]
    cberror(topo->be_data, "processed %u rows, expected %d",
                           ^
 postgis_topology.c: In function 'cb_insertEdges':
 postgis_topology.c:1496:26: warning: format '%u' expects argument of type
 'unsigned int', but argument 3 has type 'uint64 {aka long unsigned int}'
 [-Wformat=]
    cberror(topo->be_data, "processed %u rows, expected %d",
                           ^
 postgis_topology.c: In function 'cb_insertFaces':
 postgis_topology.c:1554:26: warning: format '%u' expects argument of type
 'unsigned int', but argument 3 has type 'uint64 {aka long unsigned int}'
 [-Wformat=]
    cberror(topo->be_data, "processed %u rows, expected %d",
                           ^
 postgis_topology.c: In function 'cb_getNextEdgeId':
 postgis_topology.c:1920:26: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'uint64 {aka long unsigned int}'
 [-Wformat=]
    cberror(topo->be_data, "processed %d rows, expected 1", SPI_processed);
                           ^
 }}}

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