This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/4876: required warning is not given
- From: Dale Johannesen <dalej at apple dot com>
- To: jsm28 at gcc dot gnu dot org
- Cc: Dale Johannesen <dalej at apple dot com>, gcc-bugs at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jsm28 at cam dot ac dot uk, nobody at gcc dot gnu dot org
- Date: Wed, 14 Nov 2001 13:36:46 -0800
- Subject: Re: c/4876: required warning is not given
[Get raw message]
On Wednesday, November 14, 2001, at 11:12 AM, jsm28@gcc.gnu.org wrote:
> Synopsis: required warning is not given
>
> State-Changed-From-To: open->closed
> State-Changed-By: jsm28
> State-Changed-When: Wed Nov 14 11:12:22 2001
> State-Changed-Why:
> If you want warnings for all constraint violations, use -pedantic.
I don't necessarily want warnings for all constraint violations. Right now
void xx() { return 3; }
gets a warning but
void xx() { return xx(); }
does not (without -pedantic). This seems wrong to me. But if the
behavior is
intentional, OK.