summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c9a2f78)
raw | patch | inline | side by side (parent: c9a2f78)
author | Sir Raorn <raorn@altlinux.ru> | |
Wed, 17 May 2006 16:09:52 +0000 (18:09 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Wed, 17 May 2006 16:09:52 +0000 (18:09 +0200) |
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 <raorn@altlinux.ru>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
tig.c:190: warning: value computed is not used
tig.c:193: warning: value computed is not used
Signed-off-by: Sir Raorn <raorn@altlinux.ru>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
tig.c | patch | blob | history |
index f68991c16e2bc5dbb508eefb2d1297b93cc07051..78e88512fa1b8f41b907bdce99fa312421b63c66 100644 (file)
--- a/tig.c
+++ b/tig.c
{
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++)) {