git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 44ead23)
Add comment about why "((void) 0)" is used in copy macros.
Wed, 3 Jun 2009 14:48:33 +0000 (14:48 +0000)
Wed, 3 Jun 2009 14:48:33 +0000 (14:48 +0000)

diff --git a/src/backend/commands/copy.c b/src/backend/commands/copy.c
index c8f5b7d1736fd0d85c0598f4923c92dc05cf2568..4f4b8474b0977ea88673217ad95174f9f6ae9bd5 100644 (file)
--- a/src/backend/commands/copy.c
+++ b/src/backend/commands/copy.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.309 2009年05月29日 13:54:52 meskes Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.310 2009年06月03日 14:48:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -175,7 +175,8 @@ typedef struct
/*
* These macros centralize code used to process line_buf and raw_buf buffers.
* They are macros because they often do continue/break control and to avoid
- * function call overhead in tight COPY loops.
+ * function call overhead in tight COPY loops. "((void) 0)" is used to silence
+ * compiler warnings.
*
* We must use "if (1)" because "do {} while(0)" overrides the continue/break
* processing. See http://www.cit.gu.edu.au/~anthony/info/C/C.macros.
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /