summaryrefslogtreecommitdiffstats
path: root/Source/cmMessageCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-09-22 17:51:40 (GMT)
committerBrad King <brad.king@kitware.com>2015-09-22 17:53:09 (GMT)
commit81739e9215ef10d870f14404b0ec5eb4bee16ce4 (patch)
tree96a5cdb8bc99c5949a4f4570a4cd0e34f41190f0 /Source/cmMessageCommand.cxx
parent975426ceb339cf7a17f57ffba2757bb368669f93 (diff)
downloadCMake-81739e9215ef10d870f14404b0ec5eb4bee16ce4.zip
CMake-81739e9215ef10d870f14404b0ec5eb4bee16ce4.tar.gz
CMake-81739e9215ef10d870f14404b0ec5eb4bee16ce4.tar.bz2
Revert topic 'cmake-W-options' (#15747)
The changes in commit c96fe0b4 (cmake: Add -W options to control deprecation warnings and errors, 2015-07-28) fail to account for -Wdev warnings produced by places in CMake other than message(). This causes a regression in which -Wno-dev fails to suppress such warnings. Revert the feature until it can be revised accordingly.
Diffstat (limited to 'Source/cmMessageCommand.cxx')
-rw-r--r--Source/cmMessageCommand.cxx14
1 files changed, 1 insertions, 13 deletions
diff --git a/Source/cmMessageCommand.cxx b/Source/cmMessageCommand.cxx
index 467555f..2854a82 100644
--- a/Source/cmMessageCommand.cxx
+++ b/Source/cmMessageCommand.cxx
@@ -43,19 +43,7 @@ bool cmMessageCommand
}
else if (*i == "AUTHOR_WARNING")
{
- if (this->Makefile->IsOn("CMAKE_ERROR_DEVELOPER_WARNINGS"))
- {
- fatal = true;
- type = cmake::AUTHOR_ERROR;
- }
- else if (!this->Makefile->IsOn("CMAKE_SUPPRESS_DEVELOPER_WARNINGS"))
- {
- type = cmake::AUTHOR_WARNING;
- }
- else
- {
- return true;
- }
+ type = cmake::AUTHOR_WARNING;
++i;
}
else if (*i == "STATUS")