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