This is the mail archive of the gcc@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]
Other format: [Raw text]

RE: Wrong warning? ISO C restric ts enumerator values to range of âintâ


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....


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