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
This commit is contained in:
Craig Scott
2020-07-01 11:02:57 +00:00
committed by Kitware Robot
20 changed files with 16 additions and 144 deletions
+3 -3
View File
@@ -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.
@@ -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.