This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] [C/C++] Add a new warning flag -Wself-assign


On Wed, Jun 23, 2010 at 5:51 PM, Joseph S. Myers
<joseph@codesourcery.com> wrote:
> 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.

That's exactly what I am doing now. :-)

Thanks,

Le-chun


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]