summaryrefslogtreecommitdiff
path: root/src/include/lib
diff options
context:
space:
mode:
authorBruce Momjian2000-02-13 13:21:11 +0000
committerBruce Momjian2000-02-13 13:21:11 +0000
commit77d31cf3c17070c38b6536fc8b8f264525930cda (patch)
tree0bfe0295d65726b895168ab5719f8adc0867a540 /src/include/lib
parent2fb0ff0c5bcb751159c6601ca3647d68622ef02b (diff)
2. trigger.c fails to compile due to a syntax error. It contains
a switch statement that has an empty default label. A label of a switch statement must be followed by a statement (or a label which is followed by a statement (or a label which ...)). 3. Files include stringinfo.h failed to compile. The macro, 'appendStringInfoCharMacro' is implemented with a '?:' operation that returns a void expression for the true part and a char expresion for the false part. Both the true and false parts of the '?:' oper- ator must return the same type. Billy G. Allie
Diffstat (limited to 'src/include/lib')
-rw-r--r--src/include/lib/stringinfo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/lib/stringinfo.h b/src/include/lib/stringinfo.h
index 25b91b9c2dd..05ba4b58a17 100644
--- a/src/include/lib/stringinfo.h
+++ b/src/include/lib/stringinfo.h
@@ -10,7 +10,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: stringinfo.h,v 1.16 2000/01/26 05:58:09 momjian Exp $
+ * $Id: stringinfo.h,v 1.17 2000/02/13 13:21:11 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -98,7 +98,7 @@ extern void appendStringInfoChar(StringInfo str, char ch);
#define appendStringInfoCharMacro(str,ch) \
(((str)->len + 1 >= (str)->maxlen) ? \
appendStringInfoChar(str, ch) : \
- ((str)->data[(str)->len] = (ch), (str)->data[++(str)->len] = '\0'))
+ (void)((str)->data[(str)->len] = (ch), (str)->data[++(str)->len] = '\0'))
/*------------------------
* appendBinaryStringInfo