Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit32e95a8

Browse files
committed
Fixed warnings with Postgres 18 [skip ci]
1 parenta03dc5b commit32e95a8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

‎src/hnsw.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ hnswcostestimate(PlannerInfo *root, IndexPath *path, double loop_count,
223223
staticbytea*
224224
hnswoptions(Datumreloptions,boolvalidate)
225225
{
226+
#ifPG_VERSION_NUM >=180000
227+
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
228+
#endif
226229
staticconstrelopt_parse_elttab[]= {
227230
{"m",RELOPT_TYPE_INT, offsetof(HnswOptions,m)},
228231
{"ef_construction",RELOPT_TYPE_INT, offsetof(HnswOptions,efConstruction)},

‎src/ivfflat.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ ivfflatcostestimate(PlannerInfo *root, IndexPath *path, double loop_count,
151151
staticbytea*
152152
ivfflatoptions(Datumreloptions,boolvalidate)
153153
{
154+
#ifPG_VERSION_NUM >=180000
155+
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
156+
#endif
154157
staticconstrelopt_parse_elttab[]= {
155158
{"lists",RELOPT_TYPE_INT, offsetof(IvfflatOptions,lists)},
156159
};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp