This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Implement -Wimplicit-fallthrough (version 9)
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Rainer Orth <ro at cebitec dot uni-bielefeld dot de>, Marek Polacek <polacek at redhat dot com>, Joseph Myers <joseph at codesourcery dot com>, Jakub Jelinek <jakub at redhat dot com>, Arnaud Charlet <charlet at adacore dot com>
- Date: Tue, 27 Sep 2016 08:49 +0200
- Subject: Re: Implement -Wimplicit-fallthrough (version 9)
- Authentication-results: sourceware.org; auth=none
- References: <20160920153343.GF19950@redhat.com> <yddintiyebz.fsf@CeBiTec.Uni-Bielefeld.DE> <CADzB+2kyUObMR-1o45S=gVqYNGi3VTFk=27rftGW_1Q3PYTkeg@mail.gmail.com>
> It seems unfortunate that the warning doesn't accept /* ... fall
> through ... */ as a fallthrough comment.
Seconded. The warning should take into account existing practices instead of
forcing the user to make completely bogus changes to the code (and Ada should
have been tested before the patch was approved).
--
Eric Botcazou