[postgis-tickets] r17497 - Pragma the pragma
Raul
raul at rmr.ninja
Tue Jun 11 11:09:50 PDT 2019
Author: algunenano
Date: 2019-06-11 11:09:50 -0700 (Tue, 11 Jun 2019)
New Revision: 17497
Modified:
trunk/raster/rt_pg/rtpg_mapalgebra.c
Log:
Pragma the pragma
Closes https://github.com/postgis/postgis/pull/416
Modified: trunk/raster/rt_pg/rtpg_mapalgebra.c
===================================================================
--- trunk/raster/rt_pg/rtpg_mapalgebra.c 2019-06-11 17:39:16 UTC (rev 17496)
+++ trunk/raster/rt_pg/rtpg_mapalgebra.c 2019-06-11 18:09:50 UTC (rev 17497)
@@ -77,6 +77,12 @@
/* n-raster MapAlgebra */
/* ---------------------------------------------------------------- */
+/* Quiet warning */
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunknown-pragmas"
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wgnu-variable-sized-type-not-at-end"
+
typedef struct {
Oid ufc_noid;
Oid ufc_rettype;
@@ -93,6 +99,10 @@
#endif
} rtpg_nmapalgebra_callback_arg;
+#pragma clang diagnostic pop
+#pragma GCC diagnostic pop
+/* ! Quiet warning */
+
typedef struct rtpg_nmapalgebra_arg_t *rtpg_nmapalgebra_arg;
struct rtpg_nmapalgebra_arg_t {
int numraster;
More information about the postgis-tickets
mailing list