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

Commitfa88e92

Browse files
author
Michael Meskes
committed
Change macros to make gcc quiet when parsing.
1 parent400fb19 commitfa88e92

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

‎src/backend/commands/copy.c

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.308 2009/04/19 21:08:54 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.309 2009/05/29 13:54:52 meskes Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -194,8 +194,7 @@ if (1) \
194194
need_data= true; \
195195
continue; \
196196
} \
197-
}else
198-
197+
}else ((void)0)
199198

200199
/* This consumes the remainder of the buffer and breaks */
201200
#defineIF_NEED_REFILL_AND_EOF_BREAK(extralen) \
@@ -209,8 +208,7 @@ if (1) \
209208
result= true; \
210209
break; \
211210
} \
212-
}else
213-
211+
}else ((void)0)
214212

215213
/*
216214
* Transfer any approved data to line_buf; must do this to be sure
@@ -226,16 +224,15 @@ if (1) \
226224
raw_buf_ptr - cstate->raw_buf_index); \
227225
cstate->raw_buf_index = raw_buf_ptr; \
228226
} \
229-
} else
227+
} else ((void) 0)
230228

231229
/* Undo any read-ahead and jump out of the block. */
232230
#defineNO_END_OF_COPY_GOTO \
233231
if (1) \
234232
{ \
235233
raw_buf_ptr = prev_raw_ptr + 1; \
236234
goto not_end_of_copy; \
237-
} else
238-
235+
} else ((void) 0)
239236

240237
staticconstcharBinarySignature[11]="PGCOPY\n\377\r\n\0";
241238

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp