C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
C4341
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler warning (level 3) C4341
 
     signed value out of range for enum constant
 
     A given enumerated constant exceeded the limit for an int. The
     value of the illegal constant is undefined.
 
     Make sure that the given constants resolve to integers between
     -32,768 and +32,767 (signed) or 0 and +65,535 (unsigned).
 
     The following example generates this warning:
 
          enum ELEMENTS
          {
             Hydrogen = 1,
             Helium,
             Lithium,
             Beryllium,
             Impossibillium = 500000
          } ;
                                    -♦-