Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9873db6

Browse files
committed
Fix compiler warnings on Sun Studio of the sort
"tsquery_op.c", line 193: warning: syntax error: empty declarationZdenek Kotala
1 parente7f4923 commit9873db6

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+
externintno_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+
externintno_such_variable
176178

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp