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

Commit7176e60

Browse files
committed
Silence Solaris compiler warnings, per buildfarm.
1 parent10a91e0 commit7176e60

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

‎contrib/tsearch2/query_cleanup.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ clean_NOT_v2(ITEM * ptr, int4 *len)
173173
#ifdefV_UNKNOWN/* exists in Windows headers */
174174
#undef V_UNKNOWN
175175
#endif
176+
#ifdefV_FALSE/* exists in Solaris headers */
177+
#undef V_FALSE
178+
#endif
176179

177180
#defineV_UNKNOWN0
178181
#defineV_TRUE1

‎contrib/tsearch2/query_support.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,8 @@ tsquery_cmp(PG_FUNCTION_ARGS)
180180
PG_RETURN_INT32(res);
181181
}
182182

183-
#defineCMPFUNC(NAME,ACTION )\
184-
PG_FUNCTION_INFO_V1(NAME);\
185-
DatumNAME(PG_FUNCTION_ARGS);\
183+
#defineCMPFUNC(NAME,ACTION )\
184+
DatumNAME(PG_FUNCTION_ARGS);\
186185
\
187186
Datum\
188187
NAME(PG_FUNCTION_ARGS) {\
@@ -194,7 +193,9 @@ NAME(PG_FUNCTION_ARGS) {\
194193
PG_FREE_IF_COPY(b,1);\
195194
\
196195
PG_RETURN_BOOL( ACTION );\
197-
}
196+
}\
197+
\
198+
PG_FUNCTION_INFO_V1(NAME)
198199

199200
CMPFUNC(tsquery_lt,res<0);
200201
CMPFUNC(tsquery_le,res <=0);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp