holes = lwalloc(sizeof(LWLINE *) * nholes);
for (i = 0; i < nholes; i++)
{
+#if GCC_VERSION >= 40604
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsign-compare"
+#endif
GSERIALIZED *g = (GSERIALIZED *)(ARR_DATA_PTR(array) + offset);
+#if GCC_VERSION >= 40604
#pragma GCC diagnostic pop
+#endif
LWLINE *hole;
offset += INTALIGN(VARSIZE(g));
if (gserialized_get_type(g) != LINETYPE)
/* One geom, good geom? Return it */
if ( count == 1 && nelems == 1 )
{
+#if GCC_VERSION >= 40604
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsign-compare"
+#endif
PG_RETURN_POINTER((GSERIALIZED *)(ARR_DATA_PTR(array)));
+#if GCC_VERSION >= 40604
#pragma GCC diagnostic pop
+#endif
}
/* Ok, we really need GEOS now ;) */
/* ---------------------------------------------------------------- */
/* Quiet warning */
+#if GCC_VERSION >= 40604
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunknown-pragmas"
+#endif
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgnu-variable-sized-type-not-at-end"
} rtpg_nmapalgebra_callback_arg;
#pragma clang diagnostic pop
+#if GCC_VERSION >= 40604
#pragma GCC diagnostic pop
+#endif
/* ! Quiet warning */
typedef struct rtpg_nmapalgebra_arg_t *rtpg_nmapalgebra_arg;