This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Add a new warning flag -Wself-assign
- From: Dave Korn <dave dot korn dot cygwin at gmail dot com>
- To: Le-Chun Wu <lcwu at google dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Diego Novillo <dnovillo at google dot com>
- Date: Wed, 09 Jun 2010 19:53:29 +0100
- Subject: Re: [patch] Add a new warning flag -Wself-assign
- References: <AANLkTimzSEcPPEePxoXu1eL_CwUmCFlhz8riqIy4w614@mail.gmail.com> <4C005EA7.6020208@gmail.com> <AANLkTikx5WX0Dyb4mcmYatK3Mqj3xEFvut-uJjd18gWe@mail.gmail.com>
On 09/06/2010 19:31, Le-Chun Wu wrote:
>
> Our recommendation is to use `(void) x' or `static_cast<void>(x)'
> instead, which should also be portable. (I actually added this
> recommendation in the documentation of -Wunused flag in my patch.)
So you did! Sorry for overlooking that.
cheers,
DaveK