diff options
author | Sean McBride <sean@rogue-research.com> | 2014-12-12 12:21:54 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-12-12 14:38:23 -0500 |
commit | 2e92570bdaacfd5791c37e0fc302e05f095c3901 (patch) | |
tree | 184df9daf37a6f865847026bee49a3d2cbc50859 /Source/cmGeneratorExpressionEvaluator.cxx | |
parent | a829f09bdd5cf28c59eeebd39d1652be2bd23283 (diff) | |
download | cmake-2e92570bdaacfd5791c37e0fc302e05f095c3901.tar.gz |
Fix some Clang -Wstring-conversion warnings
Some false positives, but some flagged faulty asserts
where the ! was inside the string instead of outside.
Diffstat (limited to 'Source/cmGeneratorExpressionEvaluator.cxx')
-rw-r--r-- | Source/cmGeneratorExpressionEvaluator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGeneratorExpressionEvaluator.cxx b/Source/cmGeneratorExpressionEvaluator.cxx index 17adad72b3..7ddf4d0592 100644 --- a/Source/cmGeneratorExpressionEvaluator.cxx +++ b/Source/cmGeneratorExpressionEvaluator.cxx @@ -1429,7 +1429,7 @@ cmPolicies::PolicyStatus statusForTarget(cmTarget const* tgt, #undef RETURN_POLICY - assert("!Unreachable code. Not a valid policy"); + assert(0 && "Unreachable code. Not a valid policy"); return cmPolicies::WARN; } @@ -1445,7 +1445,7 @@ cmPolicies::PolicyID policyForString(const char *policy_id) #undef RETURN_POLICY_ID - assert("!Unreachable code. Not a valid policy"); + assert(0 && "Unreachable code. Not a valid policy"); return cmPolicies::CMP0002; } |