build: enable no-parentheses in clang
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 17 Feb 2017 15:10:28 +0000 (16:10 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 17 Feb 2017 15:10:28 +0000 (16:10 +0100)
commitf827ab0390625cff1f20ee5e140605e173238e81
treeb1a1c92dc9a10ead67a579e018f3227b8a00a9d9
parentd40d3ef9882650ecedadffa2ef35304b66736664
build: enable no-parentheses in clang

And fix the following errors reported:

traps.c:2014:25: error: equality comparison with extraneous parentheses
      [-Werror,-Wparentheses-equality]
        else if ( (port == RTC_PORT(0)) )
                   ~~~~~^~~~~~~~~~~~~~
traps.c:2014:25: note: remove extraneous parentheses around the comparison to silence this warning
        else if ( (port == RTC_PORT(0)) )
                  ~     ^             ~
traps.c:2014:25: note: use '=' to turn this equality comparison into an assignment
        else if ( (port == RTC_PORT(0)) )
                        ^~
                        =
traps.c:2083:25: error: equality comparison with extraneous parentheses
      [-Werror,-Wparentheses-equality]
        else if ( (port == RTC_PORT(0)) )
                   ~~~~~^~~~~~~~~~~~~~

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Config.mk
xen/arch/x86/traps.c