https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81233

--- Comment #6 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #5)
> (In reply to Marek Polacek from comment #3)
> > Fixed.  Further improvements are possible.
> 
> Uh... reopening for the possible further improvements;
> -Wdiscarded-qualifiers still doesn't say quite enough, IMO

Also I think that a separate flag like clang's
-Wincompatible-pointer-types-discards-qualifiers (mentioned in the OP) would be
useful for additional granularity; often times there are projects where
-Werror=incompatible-pointer-types and -Werror=discarded-qualifiers would make
building them too difficult, but
-Werror=incompatible-pointer-types-discards-qualifier wouldn't

Reply via email to