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