chiark
/
gitweb
/
~mdw
/
tig
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c9a2f78
)
Fix warnings
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
patch
|
blob
|
blame
|
history
diff --git
a/tig.c
b/tig.c
index f68991c16e2bc5dbb508eefb2d1297b93cc07051..78e88512fa1b8f41b907bdce99fa312421b63c66 100644
(file)
--- a/
tig.c
+++ b/
tig.c
@@
-180,7
+180,7
@@
sq_quote(char buf[SIZEOF_CMD], size_t bufsize, const char *src)
{
char 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++)) {
BUFPUT('\'');
while ((c = *src++)) {