diff options
author | Stephen Kelly <steveire@gmail.com> | 2016-10-09 08:47:44 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2016-10-09 08:47:44 (GMT) |
commit | 267e02097e90d05a16ffd1aa53fb7910b79aa0ec (patch) | |
tree | 8e3afdb31ed6a556252402682b32c827cea2ef43 | |
parent | 009019f2596de08c488588fd2c67a423f9fe92bf (diff) | |
download | CMake-267e02097e90d05a16ffd1aa53fb7910b79aa0ec.zip CMake-267e02097e90d05a16ffd1aa53fb7910b79aa0ec.tar.gz CMake-267e02097e90d05a16ffd1aa53fb7910b79aa0ec.tar.bz2 |
cmMakefile: Remove pointless condition
This method is never called with an empty string.
-rw-r--r-- | Source/cmMakefile.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index df993ce..a9ef9cd 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -3970,10 +3970,8 @@ cmPolicies::PolicyStatus cmMakefile::GetPolicyStatus( bool cmMakefile::PolicyOptionalWarningEnabled(std::string const& var) { // Check for an explicit CMAKE_POLICY_WARNING_CMP<NNNN> setting. - if (!var.empty()) { - if (const char* val = this->GetDefinition(var)) { - return cmSystemTools::IsOn(val); - } + if (const char* val = this->GetDefinition(var)) { + return cmSystemTools::IsOn(val); } // Enable optional policy warnings with --debug-output, --trace, // or --trace-expand. |