[Bug c/97598] -Wself-init alone fails to warn of a pointless assignment

2023-11-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97598

Andrew Pinski  changed:

   What|Removed |Added

 Resolution|--- |INVALID
 Status|UNCONFIRMED |RESOLVED

--- Comment #2 from Andrew Pinski  ---
https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc/Warning-Options.html#index-Winit-self

This is documented this way even:

Note this option can only be used with the -Wuninitialized option.

[Bug c/97598] -Wself-init alone fails to warn of a pointless assignment

2020-10-27 Thread philiprbrenan at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97598

--- Comment #1 from Philip R Brenan  ---
Created attachment 49454
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49454=edit
Test case