diff options
author | sbruno <sbruno@FreeBSD.org> | 2013-10-26 14:49:19 +0000 |
---|---|---|
committer | sbruno <sbruno@FreeBSD.org> | 2013-10-26 14:49:19 +0000 |
commit | c8a1fc11ecfa650324c11c1cce7234684567e65e (patch) | |
tree | 57ea691562df6d6f44f039d7fa327d18341ae8e2 /contrib/gperf | |
parent | 58012cd9d92c281b5f4758ff7291d2f4b78ed21e (diff) | |
download | FreeBSD-src-c8a1fc11ecfa650324c11c1cce7234684567e65e.zip FreeBSD-src-c8a1fc11ecfa650324c11c1cce7234684567e65e.tar.gz |
Queisce warnings for gperf -Wlogical-op-parentheses with parens to
explicitly define the logic
Diffstat (limited to 'contrib/gperf')
-rw-r--r-- | contrib/gperf/src/options.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/gperf/src/options.cc b/contrib/gperf/src/options.cc index a86432e..a799b5a 100644 --- a/contrib/gperf/src/options.cc +++ b/contrib/gperf/src/options.cc @@ -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); |