errors.hlp (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.
Error Message
                                                  Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler warning (level 1) C4140
 
     'function' redefined : preceding references may be invalid
 
     The compiler issues this warning if a function definition changes
     between incremental compilations.
 
     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 /Gi option, and later the
     func1 definition is changed to long func1, the compiler issues
     this message to warn that calls to func1 may be of the wrong type.
 
     Be sure that function calls reference the correct type; if not,
     recompile without /Gi. To avoid the problem altogether, use
     function prototypes.
                                    -♦-