mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
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:
@@ -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.
|
||||
Reference in New Issue
Block a user