diff options
author | Brad King <brad.king@kitware.com> | 2020-06-29 20:45:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-06-29 21:23:27 (GMT) |
commit | df6b077625f86e4ec0d534f6cd88f8610c5b8f8a (patch) | |
tree | c2aa4271583dcad49c08570f90f8caf2b97c8451 /Source/cmMakefile.h | |
parent | f2b84d24cfccf49b6332cf3f2ca164fd71ae023e (diff) | |
download | CMake-df6b077625f86e4ec0d534f6cd88f8610c5b8f8a.zip CMake-df6b077625f86e4ec0d534f6cd88f8610c5b8f8a.tar.gz CMake-df6b077625f86e4ec0d534f6cd88f8610c5b8f8a.tar.bz2 |
cmake: Remove broken '--warn-unused-vars' option
This option has been broken since commit b9f9915516 (cmMakefile: Remove
VarUsageStack., 2015-05-17, v3.3.0-rc1~52^2). That commit removed the
check that an initialized variable has actually been used and caused the
option to warn on every variable ever set. This was not caught by the
test suite because the test for the feature only checked that warnings
appear when needed and not that they do not appear when not needed.
The option was never very practical to use. Remove it to avoid the
runtime cost of usage tracking and checks for every variable (which we
were doing even when the option was not used).
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index 332554e..045ded4 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -995,9 +995,6 @@ protected: // add link libraries and directories to the target void AddGlobalLinkInformation(cmTarget& target); - // Check for a an unused variable - void LogUnused(const char* reason, const std::string& name) const; - mutable std::set<cmListFileContext> CMP0054ReportedIds; // libraries, classes, and executables @@ -1233,10 +1230,6 @@ private: std::string const& config, const std::string& feature) const; - void CheckForUnusedVariables() const; - - // Unused variable flags - bool WarnUnused; bool CheckSystemVars; bool CheckCMP0000; std::set<std::string> WarnedCMP0074; |