From e5758662973746b244ce62dbaccd7fa191a6ef8b Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sat, 5 Apr 2025 12:56:00 -0700 Subject: [PATCH] Revert "Fixed warnings with Postgres 18 [skip ci]" This reverts commit 32e95a8598200788bfc13fb1b9b8284b45f07eda. --- src/hnsw.c | 3 --- src/ivfflat.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/hnsw.c b/src/hnsw.c index 5d16ae3..ec7c988 100644 --- a/src/hnsw.c +++ b/src/hnsw.c @@ -223,9 +223,6 @@ hnswcostestimate(PlannerInfo *root, IndexPath *path, double loop_count, static bytea * hnswoptions(Datum reloptions, bool validate) { -#if PG_VERSION_NUM >= 180000 && defined(__GNUC__) -#pragma GCC diagnostic ignored "-Wmissing-field-initializers" -#endif static const relopt_parse_elt tab[] = { {"m", RELOPT_TYPE_INT, offsetof(HnswOptions, m)}, {"ef_construction", RELOPT_TYPE_INT, offsetof(HnswOptions, efConstruction)}, diff --git a/src/ivfflat.c b/src/ivfflat.c index 3ff0299..736d537 100644 --- a/src/ivfflat.c +++ b/src/ivfflat.c @@ -151,9 +151,6 @@ ivfflatcostestimate(PlannerInfo *root, IndexPath *path, double loop_count, static bytea * ivfflatoptions(Datum reloptions, bool validate) { -#if PG_VERSION_NUM >= 180000 && defined(__GNUC__) -#pragma GCC diagnostic ignored "-Wmissing-field-initializers" -#endif static const relopt_parse_elt tab[] = { {"lists", RELOPT_TYPE_INT, offsetof(IvfflatOptions, lists)}, };