This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: typecast violation ?
- From: Ben Davis <bnd25 at cam dot ac dot uk>
- To: gcc-help at gcc dot gnu dot org
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 19 Jan 2003 14:31:43 +0000
- Subject: Re: typecast violation ?
- References: <BAY1-F2153PgSSLWHXG000119e6@hotmail.com>
On Sunday 19 January 2003 2:18 pm, Nandkishor P wrote:
> 3 char c;
> 4 (int)c += 4;
This is a documented GNU Extension. I believe there are flags that make GCC
warn if such extensions are used (might be -pedantic).
Ben