From: Sir Raorn Date: Wed, 17 May 2006 16:09:52 +0000 (+0200) Subject: Fix warnings X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a9274b95c642f101382a4b617de2e9dadf5f5ec8;p=tig.git Fix warnings tig.c: In function 'sq_quote': tig.c:190: warning: value computed is not used tig.c:193: warning: value computed is not used Signed-off-by: Sir Raorn Signed-off-by: Jonas Fonseca --- diff --git a/tig.c b/tig.c index f68991c..78e8851 100644 --- a/tig.c +++ b/tig.c @@ -180,7 +180,7 @@ sq_quote(char buf[SIZEOF_CMD], size_t bufsize, const char *src) { char c; -#define BUFPUT(x) ( (bufsize < SIZEOF_CMD) && (buf[bufsize++] = (x)) ) +#define BUFPUT(x) do { if (bufsize < SIZEOF_CMD) buf[bufsize++] = (x); } while (0) BUFPUT('\''); while ((c = *src++)) {