From a9274b95c642f101382a4b617de2e9dadf5f5ec8 Mon Sep 17 00:00:00 2001 From: Sir Raorn Date: Wed, 17 May 2006 18:09:52 +0200 Subject: [PATCH] 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 --- tig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++)) { -- 2.30.2