VMS Help
CC, Messages, ENUMSANDINT

 *Conan The Librarian (sorry for the slow response - running on an old VAX)

 Message        <Context> allowing an enumeration type and a signed
                int to be compatible may not be portable.

 Description    The standard states that enumeration types shall be
                compatible with an integer type.  Compaq C, along
                with most other C compilers, has chosen the signed
                int type to be compatible with enumeration types.
                Other compilers may chose another type such as
                unsigned int (the C standard even allows an
                implementation to choose different integer types
                depending on the values of the enumeration constants
                defined for the type).  Therefore this program may
                not be accepted by other C compilers.

 User Action    Insert a cast to make the types the same.
  Close     HLB-list     TLB-list     Help  

[legal] [privacy] [GNU] [policy] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.