Add -Wused-but-marked-unused as an extra warning flag.

We can't just turn it on yet, because that would require generators to
know which generated functions use which parameters and mark only the
unused ones as such.  The generator that turns PIDL files into DCE RPC
dissectors is one that would have to be fixed.

Change-Id: I7b0e9b08de6e7e9e611143de7307d3323a5c913e
Reviewed-on: https://code.wireshark.org/review/23249
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2017-08-27 14:19:39 -07:00
parent d846a3e8b9
commit 1aaa904622
1 changed files with 7 additions and 0 deletions

View File

@ -606,6 +606,13 @@ else()
# never enable this one with -Werror.
#
-Wbad-function-cast
#
# This causes some generated files to fail with -Werror;
# fixing that would require the generator to figure
# out in which functions use which parameters.
#
-Wused-but-marked-unused
)
set(CXX_EXTRA_WARN_FLAGS