bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] fallthrough: update for GCC 7/8


From: Pádraig Brady
Subject: Re: [PATCH] fallthrough: update for GCC 7/8
Date: Mon, 22 May 2017 12:50:08 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 22/05/17 07:07, Bernhard Voelker wrote:
> On 05/20/2017 02:12 AM, Jim Meyering wrote:
>> * lib/quotearg.c (FALLTHROUGH): New macro.
>> Use it whenever one switch case falls through into the next,
>> replacing "/* Fall through */" comments.  This exposed one
>> instance of an unwarranted "fall through" comment: unwarranted
>> because it preceded a "goto" label not a case statement.
> 
> Here's a diff output with one more line of context:
> 
> @@ -504,9 +512,8 @@ quotearg_buffer_restyled (char *buffer, size_t buffersize,
>          c_and_shell_escape:
>            if (quoting_style == shell_always_quoting_style
>                && elide_outer_quotes)
>              goto force_outer_quoting_style;
> -          /* Fall through.  */
>          c_escape:
>            if (backslash_escapes)
>              {
>                c = esc;
> 
> IMO the "fall through" comment was warranted ... in the else case.

Agreed. Pushed that change in your name.
Thanks to both of you for the cleanups.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]