Fix annoying warning about wrbuf_putc YAZ-789
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 30 Sep 2014 13:51:59 +0000 (13:51 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 30 Sep 2014 13:51:59 +0000 (13:51 +0000)
include/yaz/wrbuf.h

index 1d4f83b..f5ebf1d 100644 (file)
@@ -258,7 +258,7 @@ const char *wrbuf_cstr_null(WRBUF b);
 
 #define wrbuf_putc(b, c) \
     ((void) ((b)->pos >= (b)->size ? wrbuf_grow(b, 1) : 0),  \
-    (b)->buf[(b)->pos++] = (c), 0)
+    (b)->buf[(b)->pos++] = (c))
 
 
 /** \brief writes JSON text to WRBUF with escaping