summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2020-07-01 11:02:57 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-07-01 11:03:54 (GMT)
commit8975c2a55b2d274b4de46c482c5873c52ba3a358 (patch)
treeaa5f992ef2787ac8dff7ef56ca96eeb514995e95 /Help
parentb7af2811aecf9aedf31e3ed98209b6a92c227116 (diff)
parentdf6b077625f86e4ec0d534f6cd88f8610c5b8f8a (diff)
downloadCMake-8975c2a55b2d274b4de46c482c5873c52ba3a358.zip
CMake-8975c2a55b2d274b4de46c482c5873c52ba3a358.tar.gz
CMake-8975c2a55b2d274b4de46c482c5873c52ba3a358.tar.bz2
Merge topic 'remove-warn-unused-vars'
df6b077625 cmake: Remove broken '--warn-unused-vars' option Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !4953
Diffstat (limited to 'Help')
-rw-r--r--Help/manual/cmake.1.rst6
-rw-r--r--Help/release/dev/remove-warn-unused-vars.rst6
2 files changed, 9 insertions, 3 deletions
diff --git a/Help/manual/cmake.1.rst b/Help/manual/cmake.1.rst
index 72ecfc7..d5fe34c 100644
--- a/Help/manual/cmake.1.rst
+++ b/Help/manual/cmake.1.rst
@@ -341,9 +341,9 @@ Options
Print a warning when an uninitialized variable is used.
``--warn-unused-vars``
- Warn about unused variables.
-
- Find variables that are declared or set, but not used.
+ Does nothing. In CMake versions 3.2 and below this enabled warnings about
+ unused variables. In CMake versions 3.3 through 3.18 the option was broken.
+ In CMake 3.19 and above the option has been removed.
``--no-warn-unused-cli``
Don't warn about command line options.
diff --git a/Help/release/dev/remove-warn-unused-vars.rst b/Help/release/dev/remove-warn-unused-vars.rst
new file mode 100644
index 0000000..7a06e91
--- /dev/null
+++ b/Help/release/dev/remove-warn-unused-vars.rst
@@ -0,0 +1,6 @@
+remove-warn-unused-vars
+-----------------------
+
+* The :manual:`cmake(1)` command-line option ``--warn-unused-vars`` has
+ been removed and is now silently ignored. The option has not worked
+ correctly since CMake 3.3.