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

--- Comment #10 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Paolo Carlini from comment #2)
> Thanks. I'm seriously wondering if this is also a problem with the name of
> the warning, because, I suppose, the same warning named
> -Wcast-to-the-same-type would generate different expectations in terms of
> false positives, etc, right? 

Instead of renaming -Wuseless-cast to -Wcast-to-the-same-type how about
splitting the 2 into separate warnings? -Wuseless-cast for actually useless
ones and -Wcast-to-the-same-type for ones that are just to the same type but
not necessarily useless. That's kind of the same as adding levels, but
addresses some of my usual complaints about numerical warnings levels, such as
having them be separately controllable.

Reply via email to