On 10/12/2016 01:12 AM, Jakub Jelinek wrote:
What I perhaps should try is removing the Common keyword from the
Wimplicit-fallthrough and Wimplicit-fallthrough= entries, e.g. similarly
to how Wnonnull-compare is defined just as Var(...) Warning in common.opt
(so that it can be used in the middle-end), but then only c-family/c.opt
extends it and says the option is C C++ ObjC ObjC++.
And it seems to work well for that option, ./f951 -Wnonnull-compare gives
Warning: command line option ‘-Wnonnull-compare’ is valid for C/C++/ObjC/ObjC++ 
but not for Fortran

Can I do that as a follow-up?

Sure. Thanks for the explanation, it's good to have that in the archive for reference. In case I wasn't clear, the patch is ok as-is.


Bernd

Reply via email to