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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
            Summary|Unused assignment does not  |assignment that is unused
                   |get reported                |afterwards is not reported
           Keywords|                            |diagnostic

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Currently set but unused only tracks if the variable is ever unused and not if
it is unused afterwards.

This requires data flow really to do such a warning.

Reply via email to