C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
C4142
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler warning (level 1) C4142
 
     benign redefinition of type
 
     A type was redefined, but the redefinition had no effect on the
     code generated.
 
     This warning commonly occurs in these cases:
 
        ■ The return type of a member function of a derived class
          differed from the return type of the corresponding overridden
          member function.
 
        ■ A type defined with the typedef command is redefined using
          different syntax.  For example, the following code causes
          this warning when generating 16-bit code:
 
       typedef   unsigned int WORD;
       typedef   unsigned short WORD;
 
     This warning is informational.
                                    -♦-