[PATCH] Add missing entry for -Wduplicated-branches
Volker Reichelt
v.reichelt@netcologne.de
Mon Jun 5 12:38:00 GMT 2017
Hi,
the warning option -Wduplicated-branches added by Marek in r244705
https://gcc.gnu.org/viewcvs?rev=244705&root=gcc&view=rev
lacks an entry in the warning list of doc/invoke.texi.
The patch below fixes that.
OK for trunk?
What about the GCC 7 branch?
Regards,
Volker
2017-06-05 Volker Reichelt <v.reichelt@netcologne.de>
* doc/invoke.texi (-Wduplicated-branches): Add to warning list.
Index: gcc/doc/invoke.texi
===================================================================
--- gcc/doc/invoke.texi (revision 248863)
+++ gcc/doc/invoke.texi (working copy)
@@ -273,7 +273,8 @@
-Wno-deprecated -Wno-deprecated-declarations -Wno-designated-init @gol
-Wdisabled-optimization @gol
-Wno-discarded-qualifiers -Wno-discarded-array-qualifiers @gol
--Wno-div-by-zero -Wdouble-promotion -Wduplicated-cond @gol
+-Wno-div-by-zero -Wdouble-promotion @gol
+-Wduplicated-branches -Wduplicated-cond @gol
-Wempty-body -Wenum-compare -Wno-endif-labels -Wexpansion-to-defined @gol
-Werror -Werror=* -Wextra-semi -Wfatal-errors @gol
-Wfloat-equal -Wformat -Wformat=2 @gol
===================================================================
More information about the Gcc-patches
mailing list