This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Implement -Wimplicit-fallthrough: core


On Fri, 22 Jul 2016, Marek Polacek wrote:

> * I noticed that we don't diagnose e.g. '__attribute__((noreturn));' in
>   the C FE in certain contexts.  Shouldn't be a showstopper though.

Bug number?  shadow_tag_warned is meant to diagnose empty declarations 
like that.  (That attributes are ignored when they form the entire 
contents of the parentheses in a function declarator is a known and 
documented peculiarity.)

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]