svn commit: r257160 - head/contrib/gperf/src
Sean Bruno
sbruno at FreeBSD.org
Sat Oct 26 14:49:20 UTC 2013
Author: sbruno
Date: Sat Oct 26 14:49:19 2013
New Revision: 257160
URL: http://svnweb.freebsd.org/changeset/base/257160
Log:
Queisce warnings for gperf -Wlogical-op-parentheses with parens to
explicitly define the logic
Modified:
head/contrib/gperf/src/options.cc
Modified: head/contrib/gperf/src/options.cc
==============================================================================
--- head/contrib/gperf/src/options.cc Sat Oct 26 14:19:57 2013 (r257159)
+++ head/contrib/gperf/src/options.cc Sat Oct 26 14:49:19 2013 (r257160)
@@ -281,7 +281,7 @@ Options::print_options () const
{
putchar (*arg);
arg++;
- if (*arg >= 'A' && *arg <= 'Z' || *arg >= 'a' && *arg <= 'z')
+ if ( (*arg >= 'A' && *arg <= 'Z') || (*arg >= 'a' && *arg <= 'z') )
{
putchar (*arg);
arg++;
@@ -293,7 +293,9 @@ Options::print_options () const
putchar (*arg);
arg++;
}
- while (*arg >= 'A' && *arg <= 'Z' || *arg >= 'a' && *arg <= 'z' || *arg == '-');
+ while ( (*arg >= 'A' && *arg <= 'Z') ||
+ (*arg >= 'a' && *arg <= 'z') ||
+ *arg == '-');
if (*arg == '=')
{
putchar (*arg);
More information about the svn-src-all
mailing list