diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2010-08-24 20:49:49 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-01 17:08:14 (GMT) |
commit | d3e8eb504137dde90a73f1b46f97f889af46db18 (patch) | |
tree | cae1d614efc1acbe7a0efc284d6e1c7fadcf8cc6 /Source/cmakemain.cxx | |
parent | f332e14ff2035e33bced0915373296a1f4cf0876 (diff) | |
download | CMake-d3e8eb504137dde90a73f1b46f97f889af46db18.zip CMake-d3e8eb504137dde90a73f1b46f97f889af46db18.tar.gz CMake-d3e8eb504137dde90a73f1b46f97f889af46db18.tar.bz2 |
Add flags to detect unused variables
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r-- | Source/cmakemain.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index ac2a338..235aaf5 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -123,6 +123,10 @@ static const char * cmDocumentationOptions[][3] = {"--strict-mode", "Put cmake in strict mode.", "In strict mode cmake will print a warning when an uninitialized variable " "is used."}, + {"--find-unused", "Find unused variables.", + "Find variables that are declared on the command line, but not used."}, + {"--find-unused-all", "Find all unused variables.", + "Find variables that are declared, but not used."}, {"--help-command cmd [file]", "Print help for a single command and exit.", "Full documentation specific to the given command is displayed. " "If a file is specified, the documentation is written into and the output " |