projects
/
platform
/
upstream
/
libgc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
224ecfa
)
Eliminate 'condition is always true' cppcheck style warning
author
Ivan Maidanski
<ivmai@mail.ru>
Mon, 29 Aug 2016 12:25:26 +0000
(15:25 +0300)
committer
Ivan Maidanski
<ivmai@mail.ru>
Mon, 29 Aug 2016 13:34:07 +0000
(16:34 +0300)
* cord/cordprnt.c (CORD_vsprintf): Comment out always-true expression
about long_arg.
cord/cordprnt.c
patch
|
blob
|
history
diff --git
a/cord/cordprnt.c
b/cord/cordprnt.c
index
a33e3f3
..
8f91cb8
100644
(file)
--- a/
cord/cordprnt.c
+++ b/
cord/cordprnt.c
@@
-308,7
+308,7
@@
int CORD_vsprintf(CORD * out, CORD format, va_list args)
case 'c':
if (long_arg <= 0) {
(void) va_arg(args, int);
- } else
if (long_arg > 0)
{
+ } else
/* long_arg > 0 */
{
(void) va_arg(args, long);
}
break;