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.
C4140
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler warning (level 1) C4140
 
     'function' redefined : preceding references may be invalid
 
     The compiler issues this warning when a function definition
     changes between incremental compilations while compiling with
     the /f, /Gi, or /qc command-line options.
 
     References previous to the redefinition use the previous
     definition. Subsequent references use the new definition.
 
     For example:
 
          main()
          {
            func1 ();
          }
          int func1 ()
          { }
 
     If this program is compiled with the /f, /Gi, or /qc option and
     later the func1 definition is changed to long func1, the compiler
     will issue this message to warn that calls to func1 may be of the
     wrong type.
 
     To avoid the problem, use function prototypes.
                                    -♦-