George wrote:
> > Also on page 114, the manual says "--warnings=none" or "-Wnone" should
> > suppress all warnings. This does not work. Grammar warnings,
if any, are
> > generated regardless of this setting.
>
> Thanks for mentioning that. I hadn't noticed it before, and I agree it is
> confusing. I think the idea was that -Wnone (or --warnings=none) simply
> disables all warnings that can be enabled by the other -W options. It's
> not clear to me if the documentation or the behavior needs to be fixed
> here.
Any opinions on this from anyone?
If we decide that -Wnone should affect all warnings, then we probably need
to add some kind of -Wother option for all warnings that do not have their
own -W option. The documentation should make it clear that we might later
move warnings from -Wother to new, more specific -W options.
Regardless of which functionality we pick for -Wnone, it probably should
not affect -Werror. Currently, it disables it. Even if we decide that
-Wnone should disable all warnings, it still should not affect -Werror in
the following case:
bison -Werror -Wnone -Wyacc parser.y
That is, POSIX Yacc warnings would be the only warnings and would be
treated as errors.