[postgis-tickets] [SCM] PostGIS branch stable-2.5 updated. 3158f39e5bf75798b4e68fce855e7c669bb10c5f

git at osgeo.org git at osgeo.org
Mon Dec 16 03:40:38 PST 2019


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, stable-2.5 has been updated
       via  3158f39e5bf75798b4e68fce855e7c669bb10c5f (commit)
      from  81754c50035bd6efb8751786cfc08bd09b284c6d (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 3158f39e5bf75798b4e68fce855e7c669bb10c5f
Author: Raúl Marín <git at rmr.ninja>
Date:   Mon Dec 16 12:39:34 2019 +0100

    rtpg_mapalgebra.c: Remove warning against PG12
    
    rtpg_mapalgebra.c:91:4: error: field 'ufc_info_data' with variable sized type 'union (anonymous union at rtpg_mapalgebra.c:88:2)' not at the end of a struct or class is a GNU extension
          [-Werror,-Wgnu-variable-sized-type-not-at-end]
            } ufc_info_data;
    
    Backported from master / stable-3.0

diff --git a/raster/rt_pg/rtpg_mapalgebra.c b/raster/rt_pg/rtpg_mapalgebra.c
index 671413e..4f20a81 100644
--- a/raster/rt_pg/rtpg_mapalgebra.c
+++ b/raster/rt_pg/rtpg_mapalgebra.c
@@ -77,6 +77,11 @@ Datum RASTER_mapAlgebra2(PG_FUNCTION_ARGS);
 /*  n-raster MapAlgebra                                             */
 /* ---------------------------------------------------------------- */
 
+#if defined(__clang__)
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wgnu-variable-sized-type-not-at-end"
+#endif
+
 typedef struct {
 	Oid ufc_noid;
 	Oid ufc_rettype;
@@ -93,6 +98,10 @@ typedef struct {
 #endif
 } rtpg_nmapalgebra_callback_arg;
 
+#if defined(__clang__)
+# pragma clang diagnostic pop
+#endif
+
 typedef struct rtpg_nmapalgebra_arg_t *rtpg_nmapalgebra_arg;
 struct rtpg_nmapalgebra_arg_t {
 	int numraster;

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

Summary of changes:
 raster/rt_pg/rtpg_mapalgebra.c | 9 +++++++++
 1 file changed, 9 insertions(+)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list