[SCM] PostGIS branch master updated. 3.6.0rc2-593-gc3004485c

git at osgeo.org git at osgeo.org
Thu Jun 18 05:57:26 PDT 2026


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, master has been updated
       via  c3004485c01808aaedefbf75d6b8de9090739811 (commit)
       via  d078fd9e158e18640e901eed329dca1f0cbc0133 (commit)
      from  b90c3dbb175c92ea3c113c38cacc6a3617a51695 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c3004485c01808aaedefbf75d6b8de9090739811
Merge: b90c3dbb1 d078fd9e1
Author: Darafei Praliaskouski <me at komzpa.net>
Date:   Thu Jun 18 16:55:30 2026 +0400

    Merge PR #903: Avoid size_t log formats for MinGW
    
    Replace size_t formatting in liblwgeom logging and error messages with unsigned-long casts so MinGW builds do not warn on unsupported %zu format specifiers.

diff --cc NEWS
index 5ca8c2631,1aa7f0626..6f57e1a8c
--- a/NEWS
+++ b/NEWS
@@@ -55,11 -54,8 +55,13 @@@ To take advantage of all postgis_sfcga
            finite coordinates (Darafei Praliaskouski)
   - GH-892, Add OSS-Fuzz coverage for TWKB and serialized raster inputs,
            including guards for malformed TWKB reads and counts (Darafei Praliaskouski)
 + - GH-888, [sfcgal] Avoid stale detoasted geometry access in
 +          CG_Visibility empty-input handling for SFCGAL < 2.2
 +          (Darafei Praliaskouski)
 + - #3179, Mark truncated libpgcommon PostgreSQL messages instead of silently
 +          dropping the tail (Darafei Praliaskouski)
+  - #6003, Avoid size_t formats in liblwgeom logging/error wrappers for
+           MinGW builds (Darafei Praliaskouski)
   - Build PostgreSQL extension modules with `-fno-semantic-interposition` when
            available so LTO can optimize same-DSO calls to exported PostGIS
            entry points directly instead of routing through the module PLT; in

commit d078fd9e158e18640e901eed329dca1f0cbc0133
Author: Darafei Praliaskouski <me at komzpa.net>
Date:   Wed Jun 17 01:19:03 2026 +0400

    Avoid size_t formats in lwgeom logs

diff --git a/NEWS b/NEWS
index 4cd72746a..1aa7f0626 100644
--- a/NEWS
+++ b/NEWS
@@ -54,6 +54,8 @@ To take advantage of all postgis_sfcgal extension features SFCGAL 2.3+ is needed
           finite coordinates (Darafei Praliaskouski)
  - GH-892, Add OSS-Fuzz coverage for TWKB and serialized raster inputs,
           including guards for malformed TWKB reads and counts (Darafei Praliaskouski)
+ - #6003, Avoid size_t formats in liblwgeom logging/error wrappers for
+          MinGW builds (Darafei Praliaskouski)
  - Build PostgreSQL extension modules with `-fno-semantic-interposition` when
           available so LTO can optimize same-DSO calls to exported PostGIS
           entry points directly instead of routing through the module PLT; in
diff --git a/liblwgeom/lwgeom_api.c b/liblwgeom/lwgeom_api.c
index 99e51b0ca..bda927801 100644
--- a/liblwgeom/lwgeom_api.c
+++ b/liblwgeom/lwgeom_api.c
@@ -19,12 +19,10 @@
  **********************************************************************
  *
  * Copyright 2001-2006 Refractions Research Inc.
- * Copyright 2017 Darafei Praliaskouski <me at komzpa.net>
+ * Copyright 2017-2026 Darafei Praliaskouski <me at komzpa.net>
  *
  **********************************************************************/
 
-
-
 #include "liblwgeom_internal.h"
 #include "lwgeom_log.h"
 
@@ -452,8 +450,8 @@ void printPA(POINTARRAY *pa)
 	else mflag = "";
 
 	lwnotice("      POINTARRAY%s{", mflag);
-	lwnotice("                 ndims=%i,   ptsize=%zu",
-	         FLAGS_NDIMS(pa->flags), ptarray_point_size(pa));
+	lwnotice(
+	    "                 ndims=%i,   ptsize=%lu", FLAGS_NDIMS(pa->flags), (unsigned long)ptarray_point_size(pa));
 	lwnotice("                 npoints = %u", pa->npoints);
 
 	for (t = 0; t < pa->npoints; t++)
diff --git a/liblwgeom/ptarray.c b/liblwgeom/ptarray.c
index 7631081bc..3baae4da6 100644
--- a/liblwgeom/ptarray.c
+++ b/liblwgeom/ptarray.c
@@ -20,10 +20,10 @@
  *
  * Copyright (C) 2012-2021 Sandro Santilli <strk at kbt.io>
  * Copyright (C) 2001-2006 Refractions Research Inc.
+ * Copyright 2026 Darafei Praliaskouski
  *
  **********************************************************************/
 
-
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
@@ -533,13 +533,11 @@ ptarray_addPoint(const POINTARRAY *pa, uint8_t *p, size_t pdims, uint32_t where)
 	POINT4D pbuf;
 	size_t ptsize = ptarray_point_size(pa);
 
-	LWDEBUGF(3, "pa %p p %p size %zu where %u",
-	         pa, p, pdims, where);
+	LWDEBUGF(3, "pa %p p %p size %lu where %u", pa, p, (unsigned long)pdims, where);
 
 	if ( pdims < 2 || pdims > 4 )
 	{
-		lwerror("ptarray_addPoint: point dimension out of range (%zu)",
-		        pdims);
+		lwerror("ptarray_addPoint: point dimension out of range (%lu)", (unsigned long)pdims);
 		return NULL;
 	}
 

-----------------------------------------------------------------------

Summary of changes:
 NEWS                   | 2 ++
 liblwgeom/lwgeom_api.c | 8 +++-----
 liblwgeom/ptarray.c    | 8 +++-----
 3 files changed, 8 insertions(+), 10 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list