[PostGIS] #5904: winnie spewing a lot of notices about topology

PostGIS trac at osgeo.org
Tue May 27 16:24:50 PDT 2025


#5904: winnie spewing a lot of notices about topology
----------------------+---------------------------
 Reporter:  robe      |      Owner:  strk
     Type:  defect    |     Status:  new
 Priority:  medium    |  Milestone:  PostGIS 3.6.0
Component:  topology  |    Version:  master
 Keywords:            |
----------------------+---------------------------
 Turned back on testing topology on winnie, and also testing PG18beta1 so
 might be a PG18 issue.

 Getting lots of warnings building master.


 {{{
 postgis_topology.c:1210:7: warning: format '%s' expects argument of type
 'char *', but argument 3 has type 'LWT_ELEMID' {aka 'long long int'}
 [-Wformat=]
        "No edge with id %" LWTFMT_ELEMID" in Topology \"%s\"",
        ^~~~~~~~~~~~~~~~~~~
 postgis_topology.c:1210:57: note: format string is defined here
        "No edge with id %" LWTFMT_ELEMID" in Topology \"%s\"",
                                                         ~^
                                                         %I64d
 postgis_topology.c:1210:7: warning: too many arguments for format
 [-Wformat-extra-args]
        "No edge with id %" LWTFMT_ELEMID" in Topology \"%s\"",
        ^~~~~~~~~~~~~~~~~~~
 postgis_topology.c:1268:32: warning: unknown conversion type character 'l'
 in format [-Wformat=]
          cberror(topo->be_data, "Corrupted topology: ring of edge %"
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 postgis_topology.c:45:26: note: format string is defined here
  # define LWTFMT_ELEMID "lld"
                           ^
 postgis_topology.c:1268:32: warning: too many arguments for format
 [-Wformat-extra-args]
          cberror(topo->be_data, "Corrupted topology: ring of edge %"
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 postgis_topology.c: In function 'cb_getNodeWithinDistance2D':
 postgis_topology.c:1523:19: warning: unknown conversion type character 'l'
 in format [-Wformat=]
        lwpgwarning("liblwgeom-topo invoked 'getNodeWithinDistance2D' "
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 In file included from
 C:/ming64gcc81/mingw64/x86_64-w64-mingw32/include/stdio.h:1399,
                  from
 E:/jenkins/postgresql/rel/pg18w64gcc81/include/server/c.h:63,
                  from
 E:/jenkins/postgresql/rel/pg18w64gcc81/include/server/postgres.h:48,
                  from postgis_topology.c:13:
 C:/ming64gcc81/mingw64/x86_64-w64-mingw32/include/_mingw_print_pop.h:86:18:
 note: format string is defined here
  #define PRIu64 "llu"
                   ^
 postgis_topology.c:1523:19: warning: too many arguments for format
 [-Wformat-extra-args]
        lwpgwarning("liblwgeom-topo invoked 'getNodeWithinDistance2D' "
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 postgis_topology.c: In function 'cb_insertNodes':
 postgis_topology.c:1643:5: warning: unknown conversion type character 'l'
 in format [-Wformat=]
      "processed " UINT64_FORMAT " rows, expected " UINT64_FORMAT,
      ^~~~~~~~~~~~
 In file included from
 C:/ming64gcc81/mingw64/x86_64-w64-mingw32/include/stdio.h:1399,
                  from
 E:/jenkins/postgresql/rel/pg18w64gcc81/include/server/c.h:63,
                  from
 E:/jenkins/postgresql/rel/pg18w64gcc81/include/server/postgres.h:48,
                  from postgis_topology.c:13:
 C:/ming64gcc81/mingw64/x86_64-w64-mingw32/include/_mingw_print_pop.h:86:18:
 note: format string is defined here
  #define PRIu64 "llu"
                   ^
 postgis_topology.c:1643:5: warning: unknown conversion type character 'l'
 in format [-Wformat=]
      "processed " UINT64_FORMAT " rows, expected " UINT64_FORMAT,
      ^~~~~~~~~~~~
 In file included from
 C:/ming64gcc81/mingw64/x86_64-w64-mingw32/include/stdio.h:1399,
                  from
 E:/jenkins/postgresql/rel/pg18w64gcc81/include/server/c.h:63,
                  from
 E:/jenkins/postgresql/rel/pg18w64gcc81/include/server/postgres.h:48,
                  from postgis_topology.c:13:
 C:/ming64gcc81/mingw64/x86_64-w64-mingw32/include/_mingw_print_pop.h:86:18:
 note: format string is defined here
  #define PRIu64 "llu"

 postgis_topology.c:3152:7: warning: unknown conversion type character 'l'
 in format [-Wformat=]
        "Face with id %" LWTFMT_ELEMID" in topology \"%s\" has empty MBR
 ?",
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5904>
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