Wrong warning? ISO C restricts enumerator values to range of ‘int’

2008-02-06 Thread Felipe Contreras
low this without warnings then? typedef enum OMX_ERRORTYPE { OMX_ErrorNone = 0, OMX_ErrorInsufficientResources = 0x80001000 } OMX_ERRORTYPE; Best regards. -- Felipe Contreras

Re: Wrong warning? ISO C restricts enumerator values to range of ‘int’

2008-02-06 Thread Felipe Contreras
On Feb 6, 2008 1:18 PM, Manuel López-Ibáñez <[EMAIL PROTECTED]> wrote: > On 06/02/2008, Felipe Contreras <[EMAIL PROTECTED]> wrote: > > > > So, shouldn't gcc allow this without warnings then? > > > > typedef enum OMX_ERRORTYPE > > { > >

Re: Wrong warning? ISO C restricts enumerator values to range of ‘int’

2008-02-06 Thread Felipe Contreras
On Feb 6, 2008 2:47 PM, Andreas Schwab <[EMAIL PROTECTED]> wrote: > "Felipe Contreras" <[EMAIL PROTECTED]> writes: > > > This is what ISO C says: > > > > Each enumerated type shall be compatible with char, a signed integer > > type