Skip to content

Commit 9873db6

Browse files
committed
Fix compiler warnings on Sun Studio of the sort
"tsquery_op.c", line 193: warning: syntax error: empty declaration Zdenek Kotala
1 parent e7f4923 commit 9873db6

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/backend/utils/adt/tsquery_op.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/backend/utils/adt/tsquery_op.c,v 1.4 2009/01/01 17:23:50 momjian Exp $
10+
* $PostgreSQL: pgsql/src/backend/utils/adt/tsquery_op.c,v 1.5 2009/05/27 19:41:58 petere Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -188,7 +188,9 @@ NAME(PG_FUNCTION_ARGS) { \
188188
PG_FREE_IF_COPY(b,1); \
189189
\
190190
PG_RETURN_BOOL( CONDITION ); \
191-
}
191+
} \
192+
/* keep compiler quiet - no extra ; */ \
193+
extern int no_such_variable
192194

193195
CMPFUNC(tsquery_lt, res < 0);
194196
CMPFUNC(tsquery_le, res <= 0);

src/backend/utils/adt/tsvector_op.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/backend/utils/adt/tsvector_op.c,v 1.21 2009/01/07 13:44:36 tgl Exp $
10+
* $PostgreSQL: pgsql/src/backend/utils/adt/tsvector_op.c,v 1.22 2009/05/27 19:41:58 petere Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -172,7 +172,9 @@ tsvector_##type(PG_FUNCTION_ARGS) \
172172
PG_FREE_IF_COPY(a,0); \
173173
PG_FREE_IF_COPY(b,1); \
174174
PG_RETURN_##ret( res action 0 ); \
175-
}
175+
} \
176+
/* keep compiler quiet - no extra ; */ \
177+
extern int no_such_variable
176178

177179
TSVECTORCMPFUNC(lt, <, BOOL);
178180
TSVECTORCMPFUNC(le, <=, BOOL);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy