[patch] [C/C++] Add a new warning flag -Wself-assign
Joseph S. Myers
joseph@codesourcery.com
Thu Jun 24 08:04:00 GMT 2010
On Wed, 23 Jun 2010, Le-Chun Wu wrote:
> The new flag doesn't warn on "int i = i + 0", but -Wuninitialized does
> (which is a more appropriate option to control the warning on this
> case, I think).
Agreed. Perhaps instead of removing the -Winit-self testcases you should
change them to verify that -Wuninitialized alone is now enough to enable
those warnings.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc-patches
mailing list