This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Wrong warning? ISO C restric ts enumerator values to range of âintâ
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Felipe Contreras'" <felipe dot contreras at gmail dot com>, <gcc at gcc dot gnu dot org>
- Date: Wed, 6 Feb 2008 11:11:31 -0000
- Subject: RE: Wrong warning? ISO C restric ts enumerator values to range of âintâ
- References: <94a0d4530802060305j7c78c66ekc5a8278689de3810@mail.gmail.com>
On 06 February 2008 11:05, Felipe Contreras wrote:
> So, shouldn't gcc allow this without warnings then?
>
> typedef enum OMX_ERRORTYPE
> {
> OMX_ErrorNone = 0,
> OMX_ErrorInsufficientResources = 0x80001000
> } OMX_ERRORTYPE;
>
> Best regards.
Does this work any better?
typedef enum OMX_ERRORTYPE
{
OMX_ErrorNone = 0,
OMX_ErrorInsufficientResources = 0x80001000u
} OMX_ERRORTYPE;
cheers,
DaveK
--
Can't think of a witty .sigline today....