This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: No effect of -fshort-enums..is it a bug
- From: John Love-Jensen <eljay at adobe dot com>
- To: "Gaurav Gautam, Noida" <gauravga at noida dot hcltech dot com>, <gcc at gcc dot gnu dot org>, MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Fri, 23 Sep 2005 09:19:17 -0500
- Subject: Re: No effect of -fshort-enums..is it a bug
Hi Gaurav,
You could do this...
q = 4294967295U
Or you could use -std=iso9899:1999 (perhaps with -pedantic) for the compiler
to produce an error. Assuming you are using GCC 4.x.
Or if you *want* to allow that, you could do this...
-std=gnu99
I'm guessing as to which version of GCC you are using, and what command line
options you used to compile with, and your platform's architecture.
HTH,
--Eljay