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