This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PING^2] PR 29521 Confusing warning for return with expression in function returning void
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Manuel López-Ibáñez <lopezibanez at gmail dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 11 Feb 2007 18:35:02 +0000 (UTC)
- Subject: Re: [PING^2] PR 29521 Confusing warning for return with expression in function returning void
- References: <6c33472e0701181000s43ec4de9o74b1acfff1756153@mail.gmail.com> <6c33472e0702110337u52bb84ddwa2f20f47d0363fd5@mail.gmail.com>
On Sun, 11 Feb 2007, Manuel López-Ibáñez wrote:
> http://gcc.gnu.org/ml/gcc-patches/2007-01/msg01533.html
>
> Updated, bootstrapped and regression tested again for a recent revision.
I don't think the new message is an improvement in the non-void case
(where the diagnostic isn't conditioned on -pedantic); for non-pedantic
messages I think it's best to avoid "ISO C forbids".
--
Joseph S. Myers
joseph@codesourcery.com