diff --git a/src/hnsw.c b/src/hnsw.c index d0d7086..5d16ae3 100644 --- a/src/hnsw.c +++ b/src/hnsw.c @@ -223,7 +223,7 @@ hnswcostestimate(PlannerInfo *root, IndexPath *path, double loop_count, static bytea * hnswoptions(Datum reloptions, bool validate) { -#if PG_VERSION_NUM >= 180000 +#if PG_VERSION_NUM >= 180000 && defined(__GNUC__) #pragma GCC diagnostic ignored "-Wmissing-field-initializers" #endif static const relopt_parse_elt tab[] = { diff --git a/src/ivfflat.c b/src/ivfflat.c index 9d95f1d..3ff0299 100644 --- a/src/ivfflat.c +++ b/src/ivfflat.c @@ -151,7 +151,7 @@ ivfflatcostestimate(PlannerInfo *root, IndexPath *path, double loop_count, static bytea * ivfflatoptions(Datum reloptions, bool validate) { -#if PG_VERSION_NUM >= 180000 +#if PG_VERSION_NUM >= 180000 && defined(__GNUC__) #pragma GCC diagnostic ignored "-Wmissing-field-initializers" #endif static const relopt_parse_elt tab[] = {