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.

Reply via email to