aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2009-05-27 19:41:58 +0000
committerPeter Eisentraut <peter_e@gmx.net>2009-05-27 19:41:58 +0000
commit9873db6646a19753df17cc1e32f6046bdfb74938 (patch)
treed3e4caea7ef1960bf8de24506feeaf3ace8f398b
parente7f4923d3b414f9920f0d479991f6dc3a9c1b739 (diff)
downloadpostgresql-9873db6646a19753df17cc1e32f6046bdfb74938.tar.gz
postgresql-9873db6646a19753df17cc1e32f6046bdfb74938.zip
Fix compiler warnings on Sun Studio of the sort
"tsquery_op.c", line 193: warning: syntax error: empty declaration Zdenek Kotala
-rw-r--r--src/backend/utils/adt/tsquery_op.c6
-rw-r--r--src/backend/utils/adt/tsvector_op.c6
2 files changed, 8 insertions, 4 deletions
diff --git a/src/backend/utils/adt/tsquery_op.c b/src/backend/utils/adt/tsquery_op.c
index f836bd1db1f..d3fc3687690 100644
--- a/src/backend/utils/adt/tsquery_op.c
+++ b/src/backend/utils/adt/tsquery_op.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/adt/tsquery_op.c,v 1.4 2009/01/01 17:23:50 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/tsquery_op.c,v 1.5 2009/05/27 19:41:58 petere Exp $
*
*-------------------------------------------------------------------------
*/
@@ -188,7 +188,9 @@ NAME(PG_FUNCTION_ARGS) { \
PG_FREE_IF_COPY(b,1); \
\
PG_RETURN_BOOL( CONDITION ); \
-}
+} \
+/* keep compiler quiet - no extra ; */ \
+extern int no_such_variable
CMPFUNC(tsquery_lt, res < 0);
CMPFUNC(tsquery_le, res <= 0);
diff --git a/src/backend/utils/adt/tsvector_op.c b/src/backend/utils/adt/tsvector_op.c
index 27cef9a89c7..e7bce9a707b 100644
--- a/src/backend/utils/adt/tsvector_op.c
+++ b/src/backend/utils/adt/tsvector_op.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/adt/tsvector_op.c,v 1.21 2009/01/07 13:44:36 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/tsvector_op.c,v 1.22 2009/05/27 19:41:58 petere Exp $
*
*-------------------------------------------------------------------------
*/
@@ -172,7 +172,9 @@ tsvector_##type(PG_FUNCTION_ARGS) \
PG_FREE_IF_COPY(a,0); \
PG_FREE_IF_COPY(b,1); \
PG_RETURN_##ret( res action 0 ); \
-}
+} \
+/* keep compiler quiet - no extra ; */ \
+extern int no_such_variable
TSVECTORCMPFUNC(lt, <, BOOL);
TSVECTORCMPFUNC(le, <=, BOOL);