This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Enum related fixes for gcc build with native cc on vax ultrix


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]