[Bug fortran/69495] unused-label warning does not tell which flag triggered it
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 27 15:19:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69495
--- Comment #6 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to janus from comment #3)
> I guess practically all occurrences of "gfc_warning (0, ..." need to be
> transformed, or are there cases where the zero is legitimate?
Most warnings don't have a command-line option associated to them, they are
enabled by default and cannot be disabled. I'm not sure whether they should,
this is up to the gfortran maintainers. The consensus in C/C++ so far has been
that adding options for all warnings would add too many options that nobody
uses. Clang does associate an option to every warning.
Other warnings that can be enabled/disabled by an option must use the
corresponding OPT_ in the warning call.
More information about the Gcc-bugs
mailing list