> Specification of the proposed new behaviour:
>
> 1. GCC should ignore unknown -Wno-* options if no other warnings are to
> be issued. This is always correct since the only effect of such an
> option would be to suppress warnings which might otherwise be
> issued. If no warnings are to be issued at all then treating even
> an unknown suppression as a no-op is clearly correct.
Ignoring the -Wno-* seems easy. I am not sure about the proper way to buffer the "unknown option" messages until the end, so we can check whether any warnings (or errors) were produced.
> Specification of the proposed new behaviour:
>
> 1. GCC should ignore unknown -Wno-* options if no other warnings are to
> be issued. This is always correct since the only effect of such an
> option would be to suppress warnings which might otherwise be
> issued. If no warnings are to be issued at all then treating even
> an unknown suppression as a no-op is clearly correct.
Ignoring the -Wno-* seems easy. I am not sure about the proper way to buffer the "unknown option" messages until the end, so we can check whether any warnings (or errors) were produced.