diff options
author | Brad King <brad.king@kitware.com> | 2009-05-11 17:58:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-05-11 17:58:19 (GMT) |
commit | a045bd4c0d08cf2a17db8b9da538aba2f4b18827 (patch) | |
tree | b9a9d21972460b9a90d4c58a46452da25a30fd27 /Source/cmCTest.cxx | |
parent | 80c66c05e749f9461bd3a025252fba4a702b0455 (diff) | |
download | CMake-a045bd4c0d08cf2a17db8b9da538aba2f4b18827.zip CMake-a045bd4c0d08cf2a17db8b9da538aba2f4b18827.tar.gz CMake-a045bd4c0d08cf2a17db8b9da538aba2f4b18827.tar.bz2 |
COMP: Avoid operator precedence warning
GCC warns that parens should be used for nested and/or operators.
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 7f0702c..0cd5d56 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -1691,11 +1691,7 @@ bool cmCTest::AddTestsForDashboardType(std::string &targ) bool cmCTest::CheckArgument(const std::string& arg, const char* varg1, const char* varg2) { - if ( varg1 && arg == varg1 || varg2 && arg == varg2 ) - { - return true; - } - return false; + return (varg1 && arg == varg1) || (varg2 && arg == varg2); } |