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

Commitd66997d

Browse files
committed
Avoid mixing designated and non-designated field initializers.
As revised by commit9324c8c, PG_MODULE_MAGIC constructed astruct initializer containing both designated fields and anon-designated "0". That's okay in C, but not in C++, withthe result that extensions written in C++ failed to compile.Change it to use only designated field initializers.Author: Yurii Rashkovskii <yrashk@omnigres.com>Discussion:https://postgr.es/m/CAG=VW14mctsR543gpzLCuJ9JgJqwa=ptmBfGvxEjs+k8Jf7-Bg@mail.gmail.com
1 parent0f3604a commitd66997d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/include/fmgr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ extern PGDLLEXPORT const Pg_magic_struct *PG_MAGIC_FUNCTION_NAME(void); \
522522
const Pg_magic_struct * \
523523
PG_MAGIC_FUNCTION_NAME(void) \
524524
{ \
525-
static const Pg_magic_struct Pg_magic_data = PG_MODULE_MAGIC_DATA(0); \
525+
static const Pg_magic_struct Pg_magic_data = PG_MODULE_MAGIC_DATA(.name = NULL); \
526526
return &Pg_magic_data; \
527527
} \
528528
extern int no_such_variable

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp