Attached patch fixes following sun studio compiler warning: "tsquery_op.c", line 193: warning: syntax error: empty declaration "tsquery_op.c", line 194: warning: syntax error: empty declaration "tsquery_op.c", line 195: warning: syntax error: empty declaration "tsquery_op.c", line 196: warning: syntax error: empty declaration "tsquery_op.c", line 197: warning: syntax error: empty declaration "tsquery_op.c", line 198: warning: syntax error: empty declaration "tsvector_op.c", line 177: warning: syntax error: empty declaration "tsvector_op.c", line 178: warning: syntax error: empty declaration "tsvector_op.c", line 179: warning: syntax error: empty declaration "tsvector_op.c", line 180: warning: syntax error: empty declaration "tsvector_op.c", line 181: warning: syntax error: empty declaration "tsvector_op.c", line 182: warning: syntax error: empty declaration "tsvector_op.c", line 183: warning: syntax error: empty declaration
Thanks Zdenek
diff -Nrc pgsql.orig.5d4d60e3a557/src/backend/utils/adt/tsquery_op.c pgsql.orig/src/backend/utils/adt/tsquery_op.c *** pgsql.orig.5d4d60e3a557/src/backend/utils/adt/tsquery_op.c 2009-05-22 17:00:22.081796110 -0400 --- pgsql.orig/src/backend/utils/adt/tsquery_op.c 2009-05-22 17:00:22.086155307 -0400 *************** *** 190,201 **** PG_RETURN_BOOL( CONDITION ); \ } ! CMPFUNC(tsquery_lt, res < 0); ! CMPFUNC(tsquery_le, res <= 0); ! CMPFUNC(tsquery_eq, res == 0); ! CMPFUNC(tsquery_ge, res >= 0); ! CMPFUNC(tsquery_gt, res > 0); ! CMPFUNC(tsquery_ne, res != 0); TSQuerySign makeTSQuerySign(TSQuery a) --- 190,201 ---- PG_RETURN_BOOL( CONDITION ); \ } ! CMPFUNC(tsquery_lt, res < 0) ! CMPFUNC(tsquery_le, res <= 0) ! CMPFUNC(tsquery_eq, res == 0) ! CMPFUNC(tsquery_ge, res >= 0) ! CMPFUNC(tsquery_gt, res > 0) ! CMPFUNC(tsquery_ne, res != 0) TSQuerySign makeTSQuerySign(TSQuery a) diff -Nrc pgsql.orig.5d4d60e3a557/src/backend/utils/adt/tsvector_op.c pgsql.orig/src/backend/utils/adt/tsvector_op.c *** pgsql.orig.5d4d60e3a557/src/backend/utils/adt/tsvector_op.c 2009-05-22 17:00:22.083116270 -0400 --- pgsql.orig/src/backend/utils/adt/tsvector_op.c 2009-05-22 17:00:22.086348815 -0400 *************** *** 174,186 **** PG_RETURN_##ret( res action 0 ); \ } ! TSVECTORCMPFUNC(lt, <, BOOL); ! TSVECTORCMPFUNC(le, <=, BOOL); ! TSVECTORCMPFUNC(eq, ==, BOOL); ! TSVECTORCMPFUNC(ge, >=, BOOL); ! TSVECTORCMPFUNC(gt, >, BOOL); ! TSVECTORCMPFUNC(ne, !=, BOOL); ! TSVECTORCMPFUNC(cmp, +, INT32); Datum tsvector_strip(PG_FUNCTION_ARGS) --- 174,186 ---- PG_RETURN_##ret( res action 0 ); \ } ! TSVECTORCMPFUNC(lt, <, BOOL) ! TSVECTORCMPFUNC(le, <=, BOOL) ! TSVECTORCMPFUNC(eq, ==, BOOL) ! TSVECTORCMPFUNC(ge, >=, BOOL) ! TSVECTORCMPFUNC(gt, >, BOOL) ! TSVECTORCMPFUNC(ne, !=, BOOL) ! TSVECTORCMPFUNC(cmp, +, INT32) Datum tsvector_strip(PG_FUNCTION_ARGS)
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers