[PostGIS] #6003: unknown conversion warning in lwgeom under mingw64/msys2 gcc 13.2

PostGIS trac at osgeo.org
Sat Oct 11 15:58:13 PDT 2025


#6003: unknown conversion warning in lwgeom under mingw64/msys2 gcc 13.2
---------------------+---------------------------
 Reporter:  robe     |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  low      |  Milestone:  PostGIS 3.6.1
Component:  postgis  |    Version:  3.5.x
 Keywords:  windows  |
---------------------+---------------------------
 I'm noticing these warnings.  They might have been there with my old chain
 too, maybe I'm just paying more attention now to these since upgrading my
 chain.


 {{{
 ptarray.c: In function 'ptarray_addPoint':
 ptarray.c:541:75: warning: unknown conversion type character 'z' in format
 [-Wformat=]
   541 |                 lwerror("ptarray_addPoint: point dimension out of
 range (%zu)",
       |
 ^
 ptarray.c:541:25: warning: too many arguments for format [-Wformat-extra-
 args]
   541 |                 lwerror("ptarray_addPoint: point dimension out of
 range (%zu)",
       |
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 lwgeom_api.c: In function 'printPA':
 lwgeom_api.c:455:56: warning: unknown conversion type character 'z' in
 format [-Wformat=]
   455 |         lwnotice("                 ndims=%i,   ptsize=%zu",
       |                                                        ^
 lwgeom_api.c:455:18: warning: too many arguments for format [-Wformat-
 extra-args]
   455 |         lwnotice("                 ndims=%i,   ptsize=%zu",
       |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 }}}

 All tests regress even topology ones so not sure it's anything to worry
 about
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/6003>
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