Skip to content

Commit 7176e60

Browse files
committed
Silence Solaris compiler warnings, per buildfarm.
1 parent 10a91e0 commit 7176e60

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
#ifdef V_UNKNOWN /* exists in Windows headers */
174174
#undef V_UNKNOWN
175175
#endif
176+
#ifdef V_FALSE /* exists in Solaris headers */
177+
#undef V_FALSE
178+
#endif
176179

177180
#define V_UNKNOWN 0
178181
#define V_TRUE 1

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-
#define CMPFUNC( NAME, ACTION ) \
184-
PG_FUNCTION_INFO_V1(NAME); \
185-
Datum NAME(PG_FUNCTION_ARGS); \
183+
#define CMPFUNC( NAME, ACTION ) \
184+
Datum NAME(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)