[SCM] PostGIS branch master updated. 3.6.0rc2-407-gbebe97d1a

git at osgeo.org git at osgeo.org
Mon Mar 23 11:08:02 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  bebe97d1abb3c2208f29533d40fe78a08c0cf0b6 (commit)
       via  08f383f7cfe6da372592a096876c1cb7c2fefc44 (commit)
       via  913caaedf89827cbc61fc9b3b0ee283a2fdff866 (commit)
       via  acf474815d0c0bcf442ee5784050dcae5da68aef (commit)
      from  c52110c83f015716df310dd94d48ff76abdd7620 (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 bebe97d1abb3c2208f29533d40fe78a08c0cf0b6
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Mon Mar 23 10:59:53 2026 -0700

    remove K&R style handling of zero-arg functions

diff --git a/raster/rt_pg/rtpg_pixel.c b/raster/rt_pg/rtpg_pixel.c
index 38f6ccb34..9aa65ebea 100644
--- a/raster/rt_pg/rtpg_pixel.c
+++ b/raster/rt_pg/rtpg_pixel.c
@@ -1292,7 +1292,7 @@ struct rtpg_setvaluesgv_geomval_t {
 	rt_raster mask;
 };
 
-static rtpg_setvaluesgv_arg rtpg_setvaluesgv_arg_init() {
+static rtpg_setvaluesgv_arg rtpg_setvaluesgv_arg_init(void) {
 	rtpg_setvaluesgv_arg arg = palloc(sizeof(struct rtpg_setvaluesgv_arg_t));
 	if (arg == NULL) {
 		elog(ERROR, "rtpg_setvaluesgv_arg_init: Could not allocate memory for function arguments");

commit 08f383f7cfe6da372592a096876c1cb7c2fefc44
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Mon Mar 23 10:53:04 2026 -0700

    remove K&R style handling of zero-arg functions

diff --git a/raster/rt_pg/rtpg_statistics.c b/raster/rt_pg/rtpg_statistics.c
index bffdf0e6b..03219f74e 100644
--- a/raster/rt_pg/rtpg_statistics.c
+++ b/raster/rt_pg/rtpg_statistics.c
@@ -513,7 +513,7 @@ rtpg_summarystats_arg_destroy(rtpg_summarystats_arg arg) {
 }
 
 static rtpg_summarystats_arg
-rtpg_summarystats_arg_init() {
+rtpg_summarystats_arg_init(void) {
 	rtpg_summarystats_arg arg = NULL;
 
 	arg = palloc(sizeof(struct rtpg_summarystats_arg_t));

commit 913caaedf89827cbc61fc9b3b0ee283a2fdff866
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Mon Mar 23 10:50:28 2026 -0700

    remove K&R style handling of zero-arg functions

diff --git a/liblwgeom/cunit/cu_ptarray.c b/liblwgeom/cunit/cu_ptarray.c
index 6d8ea2faa..8cf3d8c11 100644
--- a/liblwgeom/cunit/cu_ptarray.c
+++ b/liblwgeom/cunit/cu_ptarray.c
@@ -314,7 +314,7 @@ static void test_ptarray_isccw(void)
 	lwpoly_free(poly);
 }
 
-static void test_ptarray_signed_area()
+static void test_ptarray_signed_area(void)
 {
 	LWLINE *line;
 	double area;
@@ -340,7 +340,7 @@ static void test_ptarray_signed_area()
 
 }
 
-static void test_ptarray_contains_point()
+static void test_ptarray_contains_point(void)
 {
 /* int ptarray_contains_point(const POINTARRAY *pa, const POINT2D *pt, int *winding_number) */
 
@@ -440,7 +440,7 @@ static void test_ptarray_contains_point()
 	lwline_free(lwline);
 }
 
-static void test_ptarrayarc_contains_point()
+static void test_ptarrayarc_contains_point(void)
 {
 	/* int ptarrayarc_contains_point(const POINTARRAY *pa, const POINT2D *pt) */
 
@@ -578,7 +578,7 @@ static void test_ptarrayarc_contains_point()
 	lwcircstring_free(lwcirc);
 }
 
-static void test_ptarray_scale()
+static void test_ptarray_scale(void)
 {
   LWLINE *line;
   POINTARRAY *pa;
@@ -627,7 +627,7 @@ static void test_ptarray_scale()
   lwline_free(line);
 }
 
-static void test_ptarray_scroll()
+static void test_ptarray_scroll(void)
 {
   LWLINE *line;
   POINTARRAY *pa;
@@ -664,7 +664,7 @@ static void test_ptarray_scroll()
   lwline_free(line);
 }
 
-static void test_ptarray_closest_vertex_2d()
+static void test_ptarray_closest_vertex_2d(void)
 {
 	LWLINE *line;
 	POINTARRAY *pa;
@@ -696,7 +696,7 @@ static void test_ptarray_closest_vertex_2d()
   lwline_free(line);
 }
 
-static void test_ptarray_closest_segment_2d()
+static void test_ptarray_closest_segment_2d(void)
 {
 	LWLINE *line;
 	POINTARRAY *pa;
diff --git a/liblwgeom/cunit/cu_remove_irrelevant_points_for_view.c b/liblwgeom/cunit/cu_remove_irrelevant_points_for_view.c
index b3bbcbcd0..ce796b939 100644
--- a/liblwgeom/cunit/cu_remove_irrelevant_points_for_view.c
+++ b/liblwgeom/cunit/cu_remove_irrelevant_points_for_view.c
@@ -15,7 +15,6 @@
 
 #include "lwgeom_remove_irrelevant_points_for_view.h"
 
-// test case for lwgeom_remove_irrelevant_points_for_view()
 static void test_lwgeom_remove_irrelevant_points_for_view(void)
 {
 	LWGEOM *geom;
diff --git a/liblwgeom/cunit/cu_tester.c b/liblwgeom/cunit/cu_tester.c
index 0df215893..708b8070c 100644
--- a/liblwgeom/cunit/cu_tester.c
+++ b/liblwgeom/cunit/cu_tester.c
@@ -30,12 +30,12 @@ cu_debuglogger(int level, const char *fmt, va_list ap);
 
 
 /* ADD YOUR SUITE SETUP FUNCTION HERE (1 of 2) */
-extern void print_suite_setup();
-extern void algorithms_suite_setup();
-extern void boundary_suite_setup();
-extern void buildarea_suite_setup();
-extern void clean_suite_setup();
-extern void clip_by_rect_suite_setup();
+extern void print_suite_setup(void);
+extern void algorithms_suite_setup(void);
+extern void boundary_suite_setup(void);
+extern void buildarea_suite_setup(void);
+extern void clean_suite_setup(void);
+extern void clip_by_rect_suite_setup(void);
 extern void force_dims_suite_setup(void);
 extern void force_sfs_suite_setup(void);
 extern void geodetic_suite_setup(void);
diff --git a/liblwgeom/lwboundingcircle.c b/liblwgeom/lwboundingcircle.c
index ba6bc40d7..673b40a1f 100644
--- a/liblwgeom/lwboundingcircle.c
+++ b/liblwgeom/lwboundingcircle.c
@@ -33,7 +33,7 @@ typedef struct {
 } SUPPORTING_POINTS;
 
 static SUPPORTING_POINTS*
-supporting_points_create()
+supporting_points_create(void)
 {
 	SUPPORTING_POINTS* s = lwalloc(sizeof(SUPPORTING_POINTS));
 	s->p1 = NULL;
@@ -214,7 +214,7 @@ calculate_mbc(const POINT2D** points, uint32_t max_n, SUPPORTING_POINTS* support
 }
 
 static LWBOUNDINGCIRCLE*
-lwboundingcircle_create()
+lwboundingcircle_create(void)
 {
 	LWBOUNDINGCIRCLE* c = lwalloc(sizeof(LWBOUNDINGCIRCLE));
 	c->center = lwalloc(sizeof(POINT2D));
diff --git a/liblwgeom/lwgeom_api.c b/liblwgeom/lwgeom_api.c
index 8d5a0f0e1..99e51b0ca 100644
--- a/liblwgeom/lwgeom_api.c
+++ b/liblwgeom/lwgeom_api.c
@@ -35,7 +35,7 @@
 #define str(s) #s
 
 const char *
-lwgeom_version()
+lwgeom_version(void)
 {
   static char *ptr = NULL;
   static char buf[256];
@@ -655,11 +655,11 @@ interpolate_point4d(const POINT4D *A, const POINT4D *B, POINT4D *I, double F)
 
 int _lwgeom_interrupt_requested = 0;
 void
-lwgeom_request_interrupt() {
+lwgeom_request_interrupt(void) {
   _lwgeom_interrupt_requested = 1;
 }
 void
-lwgeom_cancel_interrupt() {
+lwgeom_cancel_interrupt(void) {
   _lwgeom_interrupt_requested = 0;
 }
 
diff --git a/loader/cunit/cu_tester.c b/loader/cunit/cu_tester.c
index d47d5b1aa..37fd810ec 100644
--- a/loader/cunit/cu_tester.c
+++ b/loader/cunit/cu_tester.c
@@ -20,7 +20,7 @@
 ** Returns a CUE_SUCCESS on successful running, another
 ** CUnit error code on failure.
 */
-int main()
+int main(void)
 {
 
 	/* initialize the CUnit test registry */
diff --git a/raster/rt_pg/rtpg_pixel.c b/raster/rt_pg/rtpg_pixel.c
index 2bfecf4d4..38f6ccb34 100644
--- a/raster/rt_pg/rtpg_pixel.c
+++ b/raster/rt_pg/rtpg_pixel.c
@@ -349,7 +349,7 @@ struct rtpg_dumpvalues_arg_t {
 	bool **nodata;
 };
 
-static rtpg_dumpvalues_arg rtpg_dumpvalues_arg_init() {
+static rtpg_dumpvalues_arg rtpg_dumpvalues_arg_init(void) {
 	rtpg_dumpvalues_arg arg = NULL;
 
 	arg = palloc(sizeof(struct rtpg_dumpvalues_arg_t));
diff --git a/raster/test/cunit/cu_band_basics.c b/raster/test/cunit/cu_band_basics.c
index 5219442e9..6a67f5d28 100644
--- a/raster/test/cunit/cu_band_basics.c
+++ b/raster/test/cunit/cu_band_basics.c
@@ -25,7 +25,7 @@
 #include "CUnit/Basic.h"
 #include "cu_tester.h"
 
-static void test_band_metadata() {
+static void test_band_metadata(void) {
 	rt_raster rast = NULL;
 	uint8_t *data = NULL;
 	rt_band band = NULL;
@@ -147,7 +147,7 @@ static void test_band_metadata() {
 	cu_free_raster(rast);
 }
 
-static void test_band_pixtype_1BB() {
+static void test_band_pixtype_1BB(void) {
 	rt_pixtype pixtype = PT_1BB;
 	uint8_t *data = NULL;
 	rt_band band = NULL;
@@ -221,7 +221,7 @@ static void test_band_pixtype_1BB() {
 	rt_band_destroy(band);
 }
 
-static void test_band_pixtype_2BUI() {
+static void test_band_pixtype_2BUI(void) {
 	rt_pixtype pixtype = PT_2BUI;
 	uint8_t *data = NULL;
 	rt_band band = NULL;
@@ -313,7 +313,7 @@ static void test_band_pixtype_2BUI() {
 	rt_band_destroy(band);
 }
 
-static void test_band_pixtype_4BUI() {
+static void test_band_pixtype_4BUI(void) {
 	rt_pixtype pixtype = PT_4BUI;
 	uint8_t *data = NULL;
 	rt_band band = NULL;
@@ -419,7 +419,7 @@ static void test_band_pixtype_4BUI() {
 	rt_band_destroy(band);
 }
 
-static void test_band_pixtype_8BUI() {
+static void test_band_pixtype_8BUI(void) {
 	rt_pixtype pixtype = PT_8BUI;
 	uint8_t *data = NULL;
 	rt_band band = NULL;
@@ -527,7 +527,7 @@ static void test_band_pixtype_8BUI() {
 	rt_band_destroy(band);
 }
 
-static void test_band_pixtype_8BSI() {
+static void test_band_pixtype_8BSI(void) {
 	rt_pixtype pixtype = PT_8BSI;
 	uint8_t *data = NULL;
 	rt_band band = NULL;
@@ -659,7 +659,7 @@ static void test_band_pixtype_8BSI() {
 	rt_band_destroy(band);
 }
 
-static void test_band_pixtype_16BUI() {
+static void test_band_pixtype_16BUI(void) {
 	rt_pixtype pixtype = PT_16BUI;
 	uint8_t *data = NULL;
 	rt_band band = NULL;
@@ -748,7 +748,7 @@ static void test_band_pixtype_16BUI() {
 	rt_band_destroy(band);
 }
 
-static void test_band_pixtype_16BSI() {
+static void test_band_pixtype_16BSI(void) {
 	rt_pixtype pixtype = PT_16BSI;
 	uint8_t *data = NULL;
 	rt_band band = NULL;
@@ -860,7 +860,7 @@ static void test_band_pixtype_16BSI() {
 	rt_band_destroy(band);
 }
 
-static void test_band_pixtype_32BUI() {
+static void test_band_pixtype_32BUI(void) {
 	rt_pixtype pixtype = PT_32BUI;
 	uint8_t *data = NULL;
 	rt_band band = NULL;
@@ -956,7 +956,7 @@ static void test_band_pixtype_32BUI() {
 	rt_band_destroy(band);
 }
 
-static void test_band_pixtype_32BSI() {
+static void test_band_pixtype_32BSI(void) {
 	rt_pixtype pixtype = PT_32BSI;
 	uint8_t *data = NULL;
 	rt_band band = NULL;
@@ -1053,7 +1053,7 @@ static void test_band_pixtype_32BSI() {
 	rt_band_destroy(band);
 }
 
-static void test_band_pixtype_32BF() {
+static void test_band_pixtype_32BF(void) {
 	rt_pixtype pixtype = PT_32BF;
 	uint8_t *data = NULL;
 	rt_band band = NULL;
@@ -1135,7 +1135,7 @@ static void test_band_pixtype_32BF() {
 	rt_band_destroy(band);
 }
 
-static void test_band_pixtype_64BF() {
+static void test_band_pixtype_64BF(void) {
 	rt_pixtype pixtype = PT_64BF;
 	uint8_t *data = NULL;
 	rt_band band = NULL;
@@ -1217,7 +1217,7 @@ static void test_band_pixtype_64BF() {
 	rt_band_destroy(band);
 }
 
-static void test_band_get_pixel_line() {
+static void test_band_get_pixel_line(void) {
 	rt_raster rast;
 	rt_band band;
 	int maxX = 5;
@@ -1259,7 +1259,7 @@ static void test_band_get_pixel_line() {
 	cu_free_raster(rast);
 }
 
-static void test_band_new_offline_from_path() {
+static void test_band_new_offline_from_path(void) {
 	rt_band band = NULL;
 	int width = 10;
 	int height = 10;
diff --git a/raster/test/cunit/cu_band_misc.c b/raster/test/cunit/cu_band_misc.c
index 0e1686564..f3af3f0a4 100644
--- a/raster/test/cunit/cu_band_misc.c
+++ b/raster/test/cunit/cu_band_misc.c
@@ -25,7 +25,7 @@
 #include "cu_tester.h"
 #include <math.h>
 
-static void test_band_get_nearest_pixel() {
+static void test_band_get_nearest_pixel(void) {
 	rt_raster rast;
 	rt_band band;
 	int x, y;
@@ -287,7 +287,7 @@ static void test_band_get_nearest_pixel() {
 	cu_free_raster(rast);
 }
 
-static void test_band_get_pixel_of_value() {
+static void test_band_get_pixel_of_value(void) {
 	rt_raster rast;
 	rt_band band;
 	uint32_t x, y;
@@ -367,7 +367,7 @@ static void test_band_get_pixel_of_value() {
 	cu_free_raster(rast);
 }
 
-static void test_pixel_set_to_array(){
+static void test_pixel_set_to_array(void){
 	rt_raster rast;
 	rt_band band;
 	rt_mask mask = NULL;
diff --git a/raster/test/cunit/cu_band_stats.c b/raster/test/cunit/cu_band_stats.c
index cf1534987..499f37afc 100644
--- a/raster/test/cunit/cu_band_stats.c
+++ b/raster/test/cunit/cu_band_stats.c
@@ -24,7 +24,7 @@
 #include "CUnit/Basic.h"
 #include "cu_tester.h"
 
-static void test_band_stats() {
+static void test_band_stats(void) {
 	rt_bandstats stats = NULL;
 	rt_histogram histogram = NULL;
 	double bin_width[] = {100};
@@ -209,7 +209,7 @@ static void test_band_stats() {
 	cu_free_raster(raster);
 }
 
-static void test_band_value_count() {
+static void test_band_value_count(void) {
 	rt_valuecount vcnts = NULL;
 
 	rt_raster raster;
diff --git a/raster/test/cunit/cu_gdal.c b/raster/test/cunit/cu_gdal.c
index 4420d2062..18b1b6314 100644
--- a/raster/test/cunit/cu_gdal.c
+++ b/raster/test/cunit/cu_gdal.c
@@ -25,11 +25,11 @@
 #include "CUnit/Basic.h"
 #include "cu_tester.h"
 
-static void test_gdal_configured() {
+static void test_gdal_configured(void) {
 	CU_ASSERT(rt_util_gdal_configured());
 }
 
-static void test_gdal_drivers() {
+static void test_gdal_drivers(void) {
 	uint32_t i;
 	uint32_t size;
 	rt_gdaldriver drv = NULL;
@@ -47,7 +47,7 @@ static void test_gdal_drivers() {
 	rtdealloc(drv);
 }
 
-static void test_gdal_rasterize() {
+static void test_gdal_rasterize(void) {
 	rt_raster raster;
 	char srs[] = "PROJCS[\"unnamed\",GEOGCS[\"unnamed ellipse\",DATUM[\"unknown\",SPHEROID[\"unnamed\",6370997,0]],PRIMEM[\"Greenwich\",0],UNIT[\"degree\",0.0174532925199433]],PROJECTION[\"Lambert_Azimuthal_Equal_Area\"],PARAMETER[\"latitude_of_center\",45],PARAMETER[\"longitude_of_center\",-100],PARAMETER[\"false_easting\",0],PARAMETER[\"false_northing\",0],UNIT[\"Meter\",1],AUTHORITY[\"EPSG\",\"2163\"]]";
 	const char wkb_hex[] = "010300000001000000050000000000000080841ec100000000600122410000000080841ec100000000804f22410000000040e81dc100000000804f22410000000040e81dc100000000600122410000000080841ec10000000060012241";
@@ -152,7 +152,7 @@ static rt_raster fillRasterToPolygonize(int hasnodata, double nodataval) {
 	return raster;
 }
 
-static void test_gdal_polygonize() {
+static void test_gdal_polygonize(void) {
 	int i;
 	rt_raster rt;
 	int nPols = 0;
@@ -301,7 +301,7 @@ test_gdal_polygonize_interrupt(void)
 	cu_free_raster(rt);
 }
 
-static void test_raster_to_gdal() {
+static void test_raster_to_gdal(void) {
 	rt_pixtype pixtype = PT_64BF;
 	rt_raster raster = NULL;
 	rt_band band = NULL;
@@ -374,7 +374,7 @@ static void test_raster_to_gdal() {
 	cu_free_raster(raster);
 }
 
-static void test_gdal_to_raster() {
+static void test_gdal_to_raster(void) {
 	rt_pixtype pixtype = PT_64BF;
 	rt_band band = NULL;
 
@@ -497,7 +497,7 @@ static void test_gdal_to_raster() {
 	cu_free_raster(raster);
 }
 
-static void test_gdal_warp() {
+static void test_gdal_warp(void) {
 	rt_pixtype pixtype = PT_64BF;
 	rt_band band = NULL;
 
diff --git a/raster/test/cunit/cu_mapalgebra.c b/raster/test/cunit/cu_mapalgebra.c
index 32e9e6e04..553cc7c36 100644
--- a/raster/test/cunit/cu_mapalgebra.c
+++ b/raster/test/cunit/cu_mapalgebra.c
@@ -492,7 +492,7 @@ static int testRasterIterator7_callback(rt_iterator_arg arg, void *userarg, doub
 	return 1;
 }
 
-static void test_raster_iterator() {
+static void test_raster_iterator(void) {
 	rt_raster rast1;
 	rt_raster rast2;
 	rt_raster rast3;
@@ -793,7 +793,7 @@ static void test_raster_iterator() {
 	if (rtn != NULL) cu_free_raster(rtn);
 }
 
-static void test_band_reclass() {
+static void test_band_reclass(void) {
 	rt_reclassexpr *exprset;
 
 	rt_raster raster;
@@ -879,7 +879,7 @@ static void test_band_reclass() {
 	rt_band_destroy(newband);
 }
 
-static void test_raster_colormap() {
+static void test_raster_colormap(void) {
 	rt_raster raster;
 	rt_raster rtn;
 	rt_band band;
diff --git a/raster/test/cunit/cu_misc.c b/raster/test/cunit/cu_misc.c
index 24c618dbd..791d70136 100644
--- a/raster/test/cunit/cu_misc.c
+++ b/raster/test/cunit/cu_misc.c
@@ -24,7 +24,7 @@
 #include "CUnit/Basic.h"
 #include "cu_tester.h"
 
-static void test_rgb_to_hsv() {
+static void test_rgb_to_hsv(void) {
 	double rgb[3] = {0, 0, 0};
 	double hsv[3] = {0, 0, 0};
 
@@ -66,7 +66,7 @@ static void test_rgb_to_hsv() {
 	CU_ASSERT_DOUBLE_EQUAL(hsv[2], 0.4, DBL_EPSILON);
 }
 
-static void test_hsv_to_rgb() {
+static void test_hsv_to_rgb(void) {
 	double hsv[3] = {0, 0, 0};
 	double rgb[3] = {0, 0, 0};
 
@@ -108,7 +108,7 @@ static void test_hsv_to_rgb() {
 	CU_ASSERT_DOUBLE_EQUAL(rgb[2], 0.4, DBL_EPSILON);
 }
 
-static void test_util_gdal_open() {
+static void test_util_gdal_open(void) {
 	extern char *gdal_enabled_drivers;
 
 	GDALDatasetH ds;
diff --git a/raster/test/cunit/cu_pixtype.c b/raster/test/cunit/cu_pixtype.c
index b69db7b37..6ef05cd64 100644
--- a/raster/test/cunit/cu_pixtype.c
+++ b/raster/test/cunit/cu_pixtype.c
@@ -25,7 +25,7 @@
 #include "CUnit/Basic.h"
 #include "cu_tester.h"
 
-static void test_pixtype_size() {
+static void test_pixtype_size(void) {
 	CU_ASSERT_EQUAL(rt_pixtype_size(PT_1BB), 1);
 	CU_ASSERT_EQUAL(rt_pixtype_size(PT_2BUI), 1);
 	CU_ASSERT_EQUAL(rt_pixtype_size(PT_4BUI), 1);
@@ -42,11 +42,11 @@ static void test_pixtype_size() {
 	CU_ASSERT_EQUAL(rt_pixtype_size(PT_END), -1);
 }
 
-static void test_pixtype_alignment() {
+static void test_pixtype_alignment(void) {
 	/* rt_pixtype_alignment() just forwards to rt_pixtype_size() */
 }
 
-static void test_pixtype_name() {
+static void test_pixtype_name(void) {
 	CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_1BB), "1BB");
 	CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_2BUI), "2BUI");
 	CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_4BUI), "4BUI");
@@ -63,7 +63,7 @@ static void test_pixtype_name() {
 	CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_END), "Unknown");
 }
 
-static void test_pixtype_index_from_name() {
+static void test_pixtype_index_from_name(void) {
 	CU_ASSERT_EQUAL(rt_pixtype_index_from_name("1BB"), PT_1BB);
 	CU_ASSERT_EQUAL(rt_pixtype_index_from_name("2BUI"), PT_2BUI);
 	CU_ASSERT_EQUAL(rt_pixtype_index_from_name("4BUI"), PT_4BUI);
@@ -83,7 +83,7 @@ static void test_pixtype_index_from_name() {
 	CU_ASSERT_EQUAL(rt_pixtype_index_from_name("3BUI"), PT_END);
 }
 
-static void test_pixtype_get_min_value() {
+static void test_pixtype_get_min_value(void) {
 	CU_ASSERT_DOUBLE_EQUAL(rt_pixtype_get_min_value(PT_1BB), rt_util_clamp_to_1BB((double) CHAR_MIN), DBL_EPSILON);
 	CU_ASSERT_DOUBLE_EQUAL(rt_pixtype_get_min_value(PT_2BUI), rt_util_clamp_to_2BUI((double) CHAR_MIN), DBL_EPSILON);
 	CU_ASSERT_DOUBLE_EQUAL(rt_pixtype_get_min_value(PT_4BUI), rt_util_clamp_to_4BUI((double) CHAR_MIN), DBL_EPSILON);
@@ -105,7 +105,7 @@ static void test_pixtype_get_min_value() {
 	CU_ASSERT_DOUBLE_EQUAL(rt_pixtype_get_min_value(PT_END), rt_util_clamp_to_8BUI((double) CHAR_MIN), DBL_EPSILON);
 }
 
-static void test_pixtype_compare_clamped_values() {
+static void test_pixtype_compare_clamped_values(void) {
 	int isequal = 0;
 
 	/* 1BB */
diff --git a/raster/test/cunit/cu_raster_basics.c b/raster/test/cunit/cu_raster_basics.c
index 98d640a1a..ad68cba9d 100644
--- a/raster/test/cunit/cu_raster_basics.c
+++ b/raster/test/cunit/cu_raster_basics.c
@@ -24,7 +24,7 @@
 #include "CUnit/Basic.h"
 #include "cu_tester.h"
 
-static void test_raster_new() {
+static void test_raster_new(void) {
 	rt_raster raster = NULL;
 
 	raster = rt_raster_new(0, 0);
@@ -40,7 +40,7 @@ static void test_raster_new() {
 	cu_free_raster(raster);
 }
 
-static void test_raster_empty() {
+static void test_raster_empty(void) {
 	rt_raster raster = NULL;
 
 	/* check that raster is empty */
@@ -59,7 +59,7 @@ static void test_raster_empty() {
 	cu_free_raster(raster);
 }
 
-static void test_raster_metadata() {
+static void test_raster_metadata(void) {
 	rt_raster raster = NULL;
 
 	/* create raster */
@@ -96,7 +96,7 @@ static void test_raster_metadata() {
 	cu_free_raster(raster);
 }
 
-static void test_raster_clone() {
+static void test_raster_clone(void) {
 	rt_raster rast1;
 	rt_raster rast2;
 	rt_band band;
@@ -140,7 +140,7 @@ static void test_raster_clone() {
 	cu_free_raster(rast1);
 }
 
-static void test_raster_from_band() {
+static void test_raster_from_band(void) {
 	uint32_t bandNums[] = {1,3};
 	int lenBandNums = 2;
 	rt_raster raster;
@@ -169,7 +169,7 @@ static void test_raster_from_band() {
 	cu_free_raster(raster);
 }
 
-static void test_raster_replace_band() {
+static void test_raster_replace_band(void) {
 	rt_raster raster;
 	rt_band band;
 	rt_band rband;
diff --git a/raster/test/cunit/cu_raster_geometry.c b/raster/test/cunit/cu_raster_geometry.c
index 162e44789..97ebb40f4 100644
--- a/raster/test/cunit/cu_raster_geometry.c
+++ b/raster/test/cunit/cu_raster_geometry.c
@@ -24,7 +24,7 @@
 #include "CUnit/Basic.h"
 #include "cu_tester.h"
 
-static void test_raster_envelope() {
+static void test_raster_envelope(void) {
 	rt_raster raster = NULL;
 	rt_envelope rtenv;
 
@@ -85,7 +85,7 @@ static void test_raster_envelope() {
 	cu_free_raster(raster);
 }
 
-static void test_raster_envelope_geom() {
+static void test_raster_envelope_geom(void) {
 	rt_raster raster = NULL;
 	LWGEOM *env = NULL;
 	LWPOLY *poly = NULL;
@@ -163,7 +163,7 @@ static void test_raster_envelope_geom() {
 	cu_free_raster(raster);
 }
 
-static void test_raster_convex_hull() {
+static void test_raster_convex_hull(void) {
 	rt_raster raster = NULL;
 	LWGEOM *hull = NULL;
 	LWPOLY *poly = NULL;
@@ -252,7 +252,7 @@ lwgeom_to_text(const LWGEOM *lwgeom) {
 	return wkt;
 }
 
-static void test_raster_surface() {
+static void test_raster_surface(void) {
 	rt_raster rast;
 	rt_band band;
 	const int maxX = 5;
@@ -374,7 +374,7 @@ static void test_raster_surface() {
 	cu_free_raster(rast);
 }
 
-static void test_raster_perimeter() {
+static void test_raster_perimeter(void) {
 	rt_raster rast;
 	rt_band band;
 	const int maxX = 5;
@@ -528,7 +528,7 @@ static void test_raster_perimeter() {
 	cu_free_raster(rast);
 }
 
-static void test_raster_pixel_as_polygon() {
+static void test_raster_pixel_as_polygon(void) {
 	rt_raster rast;
 	rt_band band;
 	uint32_t x, y;
@@ -576,7 +576,7 @@ static void test_raster_pixel_as_polygon() {
 
 
 
-static void test_raster_get_pixel_bilinear() {
+static void test_raster_get_pixel_bilinear(void) {
 	uint32_t width = 2;
 	uint32_t height = 2;
 	double ul_x = 0.0;
diff --git a/raster/test/cunit/cu_raster_misc.c b/raster/test/cunit/cu_raster_misc.c
index b2ed95e17..90888a9aa 100644
--- a/raster/test/cunit/cu_raster_misc.c
+++ b/raster/test/cunit/cu_raster_misc.c
@@ -24,7 +24,7 @@
 #include "CUnit/Basic.h"
 #include "cu_tester.h"
 
-static void test_raster_cell_to_geopoint() {
+static void test_raster_cell_to_geopoint(void) {
 	rt_raster raster;
 	int rtn;
 	double xw, yw;
@@ -43,7 +43,7 @@ static void test_raster_cell_to_geopoint() {
 	cu_free_raster(raster);
 }
 
-static void test_raster_geopoint_to_cell() {
+static void test_raster_geopoint_to_cell(void) {
 	rt_raster raster;
 	int rtn;
 	double xr, yr;
@@ -62,7 +62,7 @@ static void test_raster_geopoint_to_cell() {
 	cu_free_raster(raster);
 }
 
-static void test_raster_from_two_rasters() {
+static void test_raster_from_two_rasters(void) {
 	rt_raster rast1;
 	rt_raster rast2;
 	rt_raster rast = NULL;
@@ -175,7 +175,7 @@ static void test_raster_from_two_rasters() {
 	cu_free_raster(rast1);
 }
 
-static void test_raster_compute_skewed_raster() {
+static void test_raster_compute_skewed_raster(void) {
 	rt_envelope extent;
 	rt_raster rast;
 	double skew[2] = {0.25, 0.25};
diff --git a/raster/test/cunit/cu_raster_wkb.c b/raster/test/cunit/cu_raster_wkb.c
index fd36aa6f9..e1e6219e1 100644
--- a/raster/test/cunit/cu_raster_wkb.c
+++ b/raster/test/cunit/cu_raster_wkb.c
@@ -25,7 +25,7 @@
 #include "CUnit/Basic.h"
 #include "cu_tester.h"
 
-static void test_raster_wkb() {
+static void test_raster_wkb(void) {
 	/* will use default allocators and message handlers */
 	rt_raster raster = NULL;
 	const char *hexwkb = NULL;
diff --git a/raster/test/cunit/cu_spatial_relationship.c b/raster/test/cunit/cu_spatial_relationship.c
index f99e78b01..7438367e4 100644
--- a/raster/test/cunit/cu_spatial_relationship.c
+++ b/raster/test/cunit/cu_spatial_relationship.c
@@ -24,7 +24,7 @@
 #include "CUnit/Basic.h"
 #include "cu_tester.h"
 
-static void test_raster_geos_overlaps() {
+static void test_raster_geos_overlaps(void) {
 	rt_raster rast1;
 	rt_raster rast2;
 	rt_band band1;
@@ -499,7 +499,7 @@ static void test_raster_geos_overlaps() {
 	cu_free_raster(rast1);
 }
 
-static void test_raster_geos_touches() {
+static void test_raster_geos_touches(void) {
 	rt_raster rast1;
 	rt_raster rast2;
 	rt_band band1;
@@ -1026,7 +1026,7 @@ static void test_raster_geos_touches() {
 	cu_free_raster(rast1);
 }
 
-static void test_raster_geos_contains() {
+static void test_raster_geos_contains(void) {
 	rt_raster rast1;
 	rt_raster rast2;
 	rt_band band1;
@@ -1553,7 +1553,7 @@ static void test_raster_geos_contains() {
 	cu_free_raster(rast1);
 }
 
-static void test_raster_geos_contains_properly() {
+static void test_raster_geos_contains_properly(void) {
 	rt_raster rast1;
 	rt_raster rast2;
 	rt_band band1;
@@ -2080,7 +2080,7 @@ static void test_raster_geos_contains_properly() {
 	cu_free_raster(rast1);
 }
 
-static void test_raster_geos_covers() {
+static void test_raster_geos_covers(void) {
 	rt_raster rast1;
 	rt_raster rast2;
 	rt_band band1;
@@ -2607,7 +2607,7 @@ static void test_raster_geos_covers() {
 	cu_free_raster(rast1);
 }
 
-static void test_raster_geos_covered_by() {
+static void test_raster_geos_covered_by(void) {
 	rt_raster rast1;
 	rt_raster rast2;
 	rt_band band1;
@@ -3134,7 +3134,7 @@ static void test_raster_geos_covered_by() {
 	cu_free_raster(rast1);
 }
 
-static void test_raster_within_distance() {
+static void test_raster_within_distance(void) {
 	rt_raster rast1;
 	rt_raster rast2;
 	rt_band band1;
@@ -3696,7 +3696,7 @@ static void test_raster_within_distance() {
 	cu_free_raster(rast1);
 }
 
-static void test_raster_fully_within_distance() {
+static void test_raster_fully_within_distance(void) {
 	rt_raster rast1;
 	rt_raster rast2;
 	rt_band band1;
@@ -4258,7 +4258,7 @@ static void test_raster_fully_within_distance() {
 	cu_free_raster(rast1);
 }
 
-static void test_raster_intersects() {
+static void test_raster_intersects(void) {
 	rt_raster rast1;
 	rt_raster rast2;
 	rt_band band1;
@@ -4725,7 +4725,7 @@ static void test_raster_intersects() {
 	cu_free_raster(rast1);
 }
 
-static void test_raster_same_alignment() {
+static void test_raster_same_alignment(void) {
 	rt_raster rast1;
 	rt_raster rast2;
 	int rtn;

commit acf474815d0c0bcf442ee5784050dcae5da68aef
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Mon Mar 23 10:27:29 2026 -0700

    Remove warning on fallthrough

diff --git a/postgis/lwgeom_functions_basic.c b/postgis/lwgeom_functions_basic.c
index 055375099..ec8b3ca18 100644
--- a/postgis/lwgeom_functions_basic.c
+++ b/postgis/lwgeom_functions_basic.c
@@ -2743,8 +2743,10 @@ Datum LWGEOM_angle(PG_FUNCTION_ARGS)
 		{
 		default: /*always executed*/
 			for (j = 0; j <= i; j++)
+			{
 				PG_FREE_IF_COPY(seri_geoms[j], j);
-				FALLTHROUGH;
+			}
+			FALLTHROUGH;
 
 		case 1:
 			lwpgerror("Empty geometry");

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

Summary of changes:
 liblwgeom/cunit/cu_ptarray.c                       | 14 +++++------
 .../cunit/cu_remove_irrelevant_points_for_view.c   |  1 -
 liblwgeom/cunit/cu_tester.c                        | 12 +++++-----
 liblwgeom/lwboundingcircle.c                       |  4 ++--
 liblwgeom/lwgeom_api.c                             |  6 ++---
 loader/cunit/cu_tester.c                           |  2 +-
 postgis/lwgeom_functions_basic.c                   |  4 +++-
 raster/rt_pg/rtpg_pixel.c                          |  4 ++--
 raster/rt_pg/rtpg_statistics.c                     |  2 +-
 raster/test/cunit/cu_band_basics.c                 | 28 +++++++++++-----------
 raster/test/cunit/cu_band_misc.c                   |  6 ++---
 raster/test/cunit/cu_band_stats.c                  |  4 ++--
 raster/test/cunit/cu_gdal.c                        | 14 +++++------
 raster/test/cunit/cu_mapalgebra.c                  |  6 ++---
 raster/test/cunit/cu_misc.c                        |  6 ++---
 raster/test/cunit/cu_pixtype.c                     | 12 +++++-----
 raster/test/cunit/cu_raster_basics.c               | 12 +++++-----
 raster/test/cunit/cu_raster_geometry.c             | 14 +++++------
 raster/test/cunit/cu_raster_misc.c                 |  8 +++----
 raster/test/cunit/cu_raster_wkb.c                  |  2 +-
 raster/test/cunit/cu_spatial_relationship.c        | 20 ++++++++--------
 21 files changed, 91 insertions(+), 90 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list