Fixed warnings with Postgres 18 [skip ci]

This commit is contained in:
Andrew Kane
2025-04-05 12:13:38 -07:00
parent a03dc5b7d0
commit 32e95a8598
2 changed files with 6 additions and 0 deletions

View File

@@ -223,6 +223,9 @@ hnswcostestimate(PlannerInfo *root, IndexPath *path, double loop_count,
static bytea *
hnswoptions(Datum reloptions, bool validate)
{
#if PG_VERSION_NUM >= 180000
#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)},

View File

@@ -151,6 +151,9 @@ ivfflatcostestimate(PlannerInfo *root, IndexPath *path, double loop_count,
static bytea *
ivfflatoptions(Datum reloptions, bool validate)
{
#if PG_VERSION_NUM >= 180000
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#endif
static const relopt_parse_elt tab[] = {
{"lists", RELOPT_TYPE_INT, offsetof(IvfflatOptions, lists)},
};