This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Enum related fixes for gcc build with native cc on vax ultrix
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: Enum related fixes for gcc build with native cc on vax ultrix
- From: Fergus Henderson <fjh at cs dot mu dot oz dot au>
- Date: Fri, 2 Mar 2001 17:23:56 +1100
- Cc: gcc-patches at gcc dot gnu dot org
- References: <200103020559.AAA15611@caip.rutgers.edu>
On 02-Mar-2001, Kaveh R. Ghazi <ghazi@caip.rutgers.edu> wrote:
> > From: "John David Anglin" <dave@hiauly1.hia.nrc.ca>
> >
> > > Could you add warnings about these uses of enums to -Wtraditional?
> >
> > That sounds like a good idea but it's going to take quite a bit of
> > digging on my part to determine how to do it.
> > Dave
>
> Would you please send me the exhaustive list of expressions you wish
> to warn about. I'll take a quick look to see if I can figure it out.
>
> --Kaveh
>
> PS: Should these be -Wtraditional or -pedantic warnings?
-Wtraditional.
In ANSI/ISO C, enumeration constants always have type `int'.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
| of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.