From: Peter Eisentraut Date: Wed, 27 May 2009 19:41:58 +0000 (+0000) Subject: Fix compiler warnings on Sun Studio of the sort X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=ad14f8999f42c07ee81096f231eeefb32b5182a1;p=users%2Fsimon%2Fpostgres.git Fix compiler warnings on Sun Studio of the sort "tsquery_op.c", line 193: warning: syntax error: empty declaration Zdenek Kotala --- diff --git a/src/backend/utils/adt/tsquery_op.c b/src/backend/utils/adt/tsquery_op.c index 9080a74529..c7ef33ab94 100644 --- a/src/backend/utils/adt/tsquery_op.c +++ b/src/backend/utils/adt/tsquery_op.c @@ -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 4534175fcd..5b457d7f6b 100644 --- a/src/backend/utils/adt/tsvector_op.c +++ b/src/backend/utils/adt/tsvector_op.c @@ -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);