Commit 7176e60b authored by Tom Lane's avatar Tom Lane

Silence Solaris compiler warnings, per buildfarm.

parent 10a91e0a
...@@ -173,6 +173,9 @@ clean_NOT_v2(ITEM * ptr, int4 *len) ...@@ -173,6 +173,9 @@ clean_NOT_v2(ITEM * ptr, int4 *len)
#ifdef V_UNKNOWN /* exists in Windows headers */ #ifdef V_UNKNOWN /* exists in Windows headers */
#undef V_UNKNOWN #undef V_UNKNOWN
#endif #endif
#ifdef V_FALSE /* exists in Solaris headers */
#undef V_FALSE
#endif
#define V_UNKNOWN 0 #define V_UNKNOWN 0
#define V_TRUE 1 #define V_TRUE 1
......
...@@ -180,9 +180,8 @@ tsquery_cmp(PG_FUNCTION_ARGS) ...@@ -180,9 +180,8 @@ tsquery_cmp(PG_FUNCTION_ARGS)
PG_RETURN_INT32(res); PG_RETURN_INT32(res);
} }
#define CMPFUNC( NAME, ACTION ) \ #define CMPFUNC( NAME, ACTION ) \
PG_FUNCTION_INFO_V1(NAME); \ Datum NAME(PG_FUNCTION_ARGS); \
Datum NAME(PG_FUNCTION_ARGS); \
\ \
Datum \ Datum \
NAME(PG_FUNCTION_ARGS) { \ NAME(PG_FUNCTION_ARGS) { \
...@@ -194,7 +193,9 @@ NAME(PG_FUNCTION_ARGS) { \ ...@@ -194,7 +193,9 @@ NAME(PG_FUNCTION_ARGS) { \
PG_FREE_IF_COPY(b,1); \ PG_FREE_IF_COPY(b,1); \
\ \
PG_RETURN_BOOL( ACTION ); \ PG_RETURN_BOOL( ACTION ); \
} } \
\
PG_FUNCTION_INFO_V1(NAME)
CMPFUNC(tsquery_lt, res < 0); CMPFUNC(tsquery_lt, res < 0);
CMPFUNC(tsquery_le, res <= 0); CMPFUNC(tsquery_le, res <= 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment