On  5 Jun, Marek Polacek wrote:
> On Mon, Jun 05, 2017 at 02:38:11PM +0200, Volker Reichelt wrote:
>> 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.
> 
> Oops.
> 
>> The patch below fixes that.
>> 
>> OK for trunk?
>> What about the GCC 7 branch?
> 
> Can't approve, but I think this is obvious, so I'd just go ahead with this.

Seems reasonable.
Committed as obvious to trunk and GCC 7 branch.

Regards,
Volker

>> Regards,
>> Volker
>> 
>> 2017-06-05  Volker Reichelt  <v.reich...@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
>> ===================================================================
>> 
> 
>       Marek

Reply via email to