Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Oct 2013 14:49:20 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r257160 - head/contrib/gperf/src
Message-ID:  <201310261449.r9QEnK99003760@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310261449.r9QEnK99003760>