On 18/08/16 18:07, David Malcolm wrote:
This isn't quite the way that fix-its are meant to be used, in my mind,
at least: the insertion text is supposed to be something that could be
literally inserted into the code (e.g. by an IDE) i.e. it should be a
code fragment, rather than a message to the user.
I added this info to
https://gcc.gnu.org/wiki/DiagnosticsGuidelines#Fix-it_hints
+static void
+maybe_warn_implicit_fallthrough (gimple_seq seq)
+{
+ if (!warn_implicit_fallthrough || lang_GNU_Fortran ())
+ return;
+
Does this warning make sense if !(lang_GNU_C() || lang_GNU_CXX()) ?
Cheers,
Manuel.