Skip to content

Commit fa88e92

Browse files
author
Michael Meskes
committed
Change macros to make gcc quiet when parsing.
1 parent 400fb19 commit fa88e92

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
#define IF_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
#define NO_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
static const char BinarySignature[11] = "PGCOPY\n\377\r\n\0";
241238

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