From: Ivan Maidanski Date: Mon, 29 Aug 2016 12:25:26 +0000 (+0300) Subject: Eliminate 'condition is always true' cppcheck style warning X-Git-Tag: v7.6.2~439 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e96b5f5a0c05e905a65ec2a395bdaa9ec97cad30;p=gc Eliminate 'condition is always true' cppcheck style warning * cord/cordprnt.c (CORD_vsprintf): Comment out always-true expression about long_arg. --- diff --git a/cord/cordprnt.c b/cord/cordprnt.c index a33e3f3b..8f91cb86 100644 --- 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;