Silence Solaris compiler warnings, per buildfarm.
authorTom Lane
Sun, 15 Jul 2007 22:49:36 +0000 (22:49 +0000)
committerTom Lane
Sun, 15 Jul 2007 22:49:36 +0000 (22:49 +0000)
contrib/tsearch2/query_cleanup.c
contrib/tsearch2/query_support.c

index 08d3ff219b5125094438b7596239e838f21a5415..0d3427ff9b81056d27021c5f5e0d7957db885eb5 100644 (file)
@@ -173,6 +173,9 @@ clean_NOT_v2(ITEM * ptr, int4 *len)
 #ifdef V_UNKNOWN               /* exists in Windows headers */
 #undef V_UNKNOWN
 #endif
+#ifdef V_FALSE                 /* exists in Solaris headers */
+#undef V_FALSE
+#endif
 
 #define V_UNKNOWN  0
 #define V_TRUE     1
index 0fc6fe334d2858587331d013299ead4c731412e4..57332cba1e87f1d480a45779ceef1861dcfe17e3 100644 (file)
@@ -180,9 +180,8 @@ tsquery_cmp(PG_FUNCTION_ARGS)
    PG_RETURN_INT32(res);
 }
 
-#define CMPFUNC( NAME, ACTION )                                        \
-PG_FUNCTION_INFO_V1(NAME);                                     \
-Datum  NAME(PG_FUNCTION_ARGS);                                     \
+#define CMPFUNC( NAME, ACTION )                                    \
+Datum  NAME(PG_FUNCTION_ARGS);                                 \
                                                    \
 Datum                                                  \
 NAME(PG_FUNCTION_ARGS) {                                       \
@@ -194,7 +193,9 @@ NAME(PG_FUNCTION_ARGS) {                                        \
    PG_FREE_IF_COPY(b,1);                                       \
                                                    \
    PG_RETURN_BOOL( ACTION );                                   \
-}
+}                                                  \
+                                                   \
+PG_FUNCTION_INFO_V1(NAME)
 
 CMPFUNC(tsquery_lt, res < 0);
 CMPFUNC(tsquery_le, res <= 0);