summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpressionEvaluator.cxx
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2014-12-12 17:21:54 (GMT)
committerBrad King <brad.king@kitware.com>2014-12-12 19:38:23 (GMT)
commit2e92570bdaacfd5791c37e0fc302e05f095c3901 (patch)
tree184df9daf37a6f865847026bee49a3d2cbc50859 /Source/cmGeneratorExpressionEvaluator.cxx
parenta829f09bdd5cf28c59eeebd39d1652be2bd23283 (diff)
downloadCMake-2e92570bdaacfd5791c37e0fc302e05f095c3901.zip
CMake-2e92570bdaacfd5791c37e0fc302e05f095c3901.tar.gz
CMake-2e92570bdaacfd5791c37e0fc302e05f095c3901.tar.bz2
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.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGeneratorExpressionEvaluator.cxx b/Source/cmGeneratorExpressionEvaluator.cxx
index 17adad7..7ddf4d0 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;
}