postgis.git / summary / log / commit / refs
commit b6eeaed34aa3b73abefcda0aacefa9b596301faa
Author: Sandro Santilli <strk@kbt.io>
Date: Wed Aug 28 12:24:54 2024 +0000
More -pedantic warnings removal
liblwgeom/liblwgeom.h.in | 2 +-
libpgcommon/lwgeom_pg.h | 4 +-
libpgcommon/lwgeom_transform.c | 2 +-
postgis/lwgeom_geos_prepared.c | 2 +-
postgis/postgis_legacy.c | 92 +++++++++++++++++++++---------------------
5 files changed, 51 insertions(+), 51 deletions(-)
diff --git a/liblwgeom/liblwgeom.h.in b/liblwgeom/liblwgeom.h.in
index 85085a49d..f8c11405c 100644
--- a/liblwgeom/liblwgeom.h.in
+++ b/liblwgeom/liblwgeom.h.in
@@ -288,7 +288,7 @@ extern void lwgeom_cancel_interrupt(void);
* the callback, if you want (see lwgeom_request_interrupt).
*
*/
-typedef void (lwinterrupt_callback)();
+typedef void (lwinterrupt_callback)(void);
extern lwinterrupt_callback *lwgeom_register_interrupt_callback(lwinterrupt_callback *);
diff --git a/libpgcommon/lwgeom_pg.h b/libpgcommon/lwgeom_pg.h
index 37875599f..e57081b82 100644
--- a/libpgcommon/lwgeom_pg.h
+++ b/libpgcommon/lwgeom_pg.h
@@ -62,7 +62,7 @@ extern postgisConstants *POSTGIS_CONSTANTS;
/* Infer the install location of postgis, and thus the namespace to use
* when looking up the type name, and cache oids */
-void postgis_initialize_cache();
+void postgis_initialize_cache(void);
/* Useful if postgis_initialize_cache() has been called before.
* Otherwise it tries to do a bare lookup */
@@ -72,7 +72,7 @@ Oid postgis_oid(postgisType typ);
* Note that it's length can be up to strlen(schema) + "." + strlen("spatial_ref_sys") + NULL, i.e: 80 bytes
* Only useful if postgis_initialize_cache has been called before. Otherwise returns "spatial_ref_sys"
*/
-const char *postgis_spatial_ref_sys();
+const char *postgis_spatial_ref_sys(void);
/****************************************************************************************/
diff --git a/libpgcommon/lwgeom_transform.c b/libpgcommon/lwgeom_transform.c
index c2b22085a..1fe21fa16 100644
--- a/libpgcommon/lwgeom_transform.c
+++ b/libpgcommon/lwgeom_transform.c
@@ -111,7 +111,7 @@ GetPROJSRSCache()
cache = MemoryContextAllocZero(context, sizeof(PROJSRSCache));
if (!cache)
- elog(ERROR, "Unable to allocate space for PROJSRSCache in context %p", context);
+ elog(ERROR, "Unable to allocate space for PROJSRSCache in context %p", (void *)context);
cache->PROJSRSCacheCount = 0;
cache->PROJSRSCacheContext = context;
diff --git a/postgis/lwgeom_geos_prepared.c b/postgis/lwgeom_geos_prepared.c
index 436b7fa58..bf7b1510f 100644
--- a/postgis/lwgeom_geos_prepared.c
+++ b/postgis/lwgeom_geos_prepared.c
@@ -280,7 +280,7 @@ PrepGeomCacheBuilder(const LWGEOM *lwgeom, GeomCache *cache)
pghe = GetPrepGeomHashEntry(prepcache->context_callback);
if ( ! pghe )
{
- lwpgerror("PrepGeomCacheBuilder failed to find hash entry for context %p", prepcache->context_callback);
+ lwpgerror("PrepGeomCacheBuilder failed to find hash entry for context %p", (void *)prepcache->context_callback);
return LW_FAILURE;
}
diff --git a/postgis/postgis_legacy.c b/postgis/postgis_legacy.c
index 32150f5f0..134cb2876 100644
--- a/postgis/postgis_legacy.c
+++ b/postgis/postgis_legacy.c
@@ -52,54 +52,54 @@
PG_RETURN_POINTER(NULL); \
}
-POSTGIS_DEPRECATE("2.2.0", LWGEOMFromWKB);
-POSTGIS_DEPRECATE("2.5.0", pgis_abs_in);
-POSTGIS_DEPRECATE("2.5.0", pgis_abs_out);
-POSTGIS_DEPRECATE("3.0.0", area);
-POSTGIS_DEPRECATE("3.0.0", LWGEOM_area_polygon);
-POSTGIS_DEPRECATE("3.0.0", distance);
-POSTGIS_DEPRECATE("3.0.0", LWGEOM_mindistance2d);
-POSTGIS_DEPRECATE("3.0.0", geomunion);
-POSTGIS_DEPRECATE("3.0.0", geos_geomunion);
-POSTGIS_DEPRECATE("3.0.0", intersection);
-POSTGIS_DEPRECATE("3.0.0", geos_intersection);
-POSTGIS_DEPRECATE("3.0.0", difference);
-POSTGIS_DEPRECATE("3.0.0", geos_difference);
-POSTGIS_DEPRECATE("3.0.0", geos_intersects);
-POSTGIS_DEPRECATE("3.0.0", sfcgal_intersects);
-POSTGIS_DEPRECATE("3.0.0", intersects3d);
-POSTGIS_DEPRECATE("3.0.0", intersects3d_dwithin);
-POSTGIS_DEPRECATE("3.0.0", sfcgal_intersects3d);
-POSTGIS_DEPRECATE("3.0.0", distance3d);
-POSTGIS_DEPRECATE("3.0.0", sfcgal_distance3d);
-POSTGIS_DEPRECATE("3.0.0", LWGEOM_mindistance3d);
-POSTGIS_DEPRECATE("3.0.0", intersects);
-POSTGIS_DEPRECATE("3.0.0", pgis_geometry_accum_finalfn);
-POSTGIS_DEPRECATE("3.0.0", postgis_autocache_bbox);
-POSTGIS_DEPRECATE("2.0.0", postgis_uses_stats);
+POSTGIS_DEPRECATE("2.2.0", LWGEOMFromWKB)
+POSTGIS_DEPRECATE("2.5.0", pgis_abs_in)
+POSTGIS_DEPRECATE("2.5.0", pgis_abs_out)
+POSTGIS_DEPRECATE("3.0.0", area)
+POSTGIS_DEPRECATE("3.0.0", LWGEOM_area_polygon)
+POSTGIS_DEPRECATE("3.0.0", distance)
+POSTGIS_DEPRECATE("3.0.0", LWGEOM_mindistance2d)
+POSTGIS_DEPRECATE("3.0.0", geomunion)
+POSTGIS_DEPRECATE("3.0.0", geos_geomunion)
+POSTGIS_DEPRECATE("3.0.0", intersection)
+POSTGIS_DEPRECATE("3.0.0", geos_intersection)
+POSTGIS_DEPRECATE("3.0.0", difference)
+POSTGIS_DEPRECATE("3.0.0", geos_difference)
+POSTGIS_DEPRECATE("3.0.0", geos_intersects)
+POSTGIS_DEPRECATE("3.0.0", sfcgal_intersects)
+POSTGIS_DEPRECATE("3.0.0", intersects3d)
+POSTGIS_DEPRECATE("3.0.0", intersects3d_dwithin)
+POSTGIS_DEPRECATE("3.0.0", sfcgal_intersects3d)
+POSTGIS_DEPRECATE("3.0.0", distance3d)
+POSTGIS_DEPRECATE("3.0.0", sfcgal_distance3d)
+POSTGIS_DEPRECATE("3.0.0", LWGEOM_mindistance3d)
+POSTGIS_DEPRECATE("3.0.0", intersects)
+POSTGIS_DEPRECATE("3.0.0", pgis_geometry_accum_finalfn)
+POSTGIS_DEPRECATE("3.0.0", postgis_autocache_bbox)
+POSTGIS_DEPRECATE("2.0.0", postgis_uses_stats)
/**Start: SFCGAL functions moved to postgis_sfcgal lib, to ease pg_upgrade **/
/**: TODO these can be taken out in a later release once PostGIS 3.0 is EOLd **/
-POSTGIS_DEPRECATE("3.1.0", sfcgal_from_ewkt);
-POSTGIS_DEPRECATE("3.1.0", sfcgal_area3D);
-POSTGIS_DEPRECATE("3.1.0", sfcgal_intersection3D);
-POSTGIS_DEPRECATE("3.1.0", sfcgal_difference3D);
-POSTGIS_DEPRECATE("3.1.0", sfcgal_union3D);
-POSTGIS_DEPRECATE("3.1.0", sfcgal_volume);
-POSTGIS_DEPRECATE("3.1.0", sfcgal_extrude);
-POSTGIS_DEPRECATE("3.1.0", sfcgal_straight_skeleton);
-POSTGIS_DEPRECATE("3.1.0", sfcgal_approximate_medial_axis);
-POSTGIS_DEPRECATE("3.1.0", sfcgal_is_planar);
-POSTGIS_DEPRECATE("3.1.0", sfcgal_orientation);
-POSTGIS_DEPRECATE("3.1.0", sfcgal_force_lhr);
-POSTGIS_DEPRECATE("3.1.0", ST_ConstrainedDelaunayTriangles);
-POSTGIS_DEPRECATE("3.1.0", sfcgal_tesselate);
-POSTGIS_DEPRECATE("3.1.0", sfcgal_minkowski_sum);
-POSTGIS_DEPRECATE("3.1.0", sfcgal_make_solid);
-POSTGIS_DEPRECATE("3.1.0", sfcgal_is_solid);
-POSTGIS_DEPRECATE("3.1.0", postgis_sfcgal_noop);
+POSTGIS_DEPRECATE("3.1.0", sfcgal_from_ewkt)
+POSTGIS_DEPRECATE("3.1.0", sfcgal_area3D)
+POSTGIS_DEPRECATE("3.1.0", sfcgal_intersection3D)
+POSTGIS_DEPRECATE("3.1.0", sfcgal_difference3D)
+POSTGIS_DEPRECATE("3.1.0", sfcgal_union3D)
+POSTGIS_DEPRECATE("3.1.0", sfcgal_volume)
+POSTGIS_DEPRECATE("3.1.0", sfcgal_extrude)
+POSTGIS_DEPRECATE("3.1.0", sfcgal_straight_skeleton)
+POSTGIS_DEPRECATE("3.1.0", sfcgal_approximate_medial_axis)
+POSTGIS_DEPRECATE("3.1.0", sfcgal_is_planar)
+POSTGIS_DEPRECATE("3.1.0", sfcgal_orientation)
+POSTGIS_DEPRECATE("3.1.0", sfcgal_force_lhr)
+POSTGIS_DEPRECATE("3.1.0", ST_ConstrainedDelaunayTriangles)
+POSTGIS_DEPRECATE("3.1.0", sfcgal_tesselate)
+POSTGIS_DEPRECATE("3.1.0", sfcgal_minkowski_sum)
+POSTGIS_DEPRECATE("3.1.0", sfcgal_make_solid)
+POSTGIS_DEPRECATE("3.1.0", sfcgal_is_solid)
+POSTGIS_DEPRECATE("3.1.0", postgis_sfcgal_noop)
/**End: SFCGAL functions moved to postgis_sfcgal lib, to ease pg_upgrade **/
-POSTGIS_DEPRECATE("3.1.0", LWGEOM_locate_between_m);
-POSTGIS_DEPRECATE("3.1.0", postgis_svn_version);
-POSTGIS_DEPRECATE("3.3.0", pgis_geometry_union_finalfn);
+POSTGIS_DEPRECATE("3.1.0", LWGEOM_locate_between_m)
+POSTGIS_DEPRECATE("3.1.0", postgis_svn_version)
+POSTGIS_DEPRECATE("3.3.0", pgis_geometry_union_finalfn)
[parent: c58d252fa72c]