This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 0/9] Enable -Wimplicit-fallthrough
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tom at tromey dot com>, gdb-patches at sourceware dot org
- Date: Fri, 4 May 2018 18:51:48 +0100
- Subject: Re: [RFA 0/9] Enable -Wimplicit-fallthrough
- References: <20180421183056.29292-1-tom@tromey.com>
On 04/21/2018 07:30 PM, Tom Tromey wrote:
> This series enables -Wimplicit-fallthrough for gdb. I think this is
> valuable because it can prevent the occasional bug.
Agreed.
>
> A couple of the patches are straightforward. For example, patch #1
> changes existing "fall-through" comments to the correct form that will
> be recognized by GCC.
>
> In some cases I was not sure which change to make. I've split all
> these out in this series for easier review. Please examine them
> carefully. This applies to patches 4, 5, 6, and 8.
>
> I chose to use comments rather than the new fall-through attribute
> because the comments are more portable: they can be ignored by
> compilers that do not understand them, and they do not require
> additional configury.
Yeah. Maybe we'll be able to use [[fallthough]] at some point.
I sent a comment to patch 9/9.
Please update the commit log of patch 5/9 reflecting John's
finding, if it makes sense.
Otherwise looks good to me. Please push. You'll need to
regenerate the configure scripts.
Thanks,
Pedro Alves