pgvector.git / summary / log / commit / refs
commit 35f4f7fc801962e73f73f4b5e6b7fd09c2f273fb
Author: Andrew Kane <andrew@ankane.org>
Date: Sat Apr 05 19:38:30 2025 +0000
Improved warning check [skip ci]
src/hnsw.c | 2 +-
src/ivfflat.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/hnsw.c b/src/hnsw.c
index d0d7086d..5d16ae36 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 9d95f1d1..3ff0299c 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[] = {
[parent: 32e95a859820]