UNCONF: C4140 May Be Caused By Incremental Compile

ID Number: Q61800

6.00 | 6.00

MS-DOS | OS/2

MSINTERNAL | unconfirmed

**********************************************************************

** -- WARNING -- **

** THE INFORMATION BELOW IS PRELIMINARY AND HAS NOT BEEN CONFIRMED, **

** EDITED, OR TESTED BY MICROSOFT. USE ONLY WITH DISCRETION. **

**********************************************************************

Summary:

The warning "C4140 'function-name': redefined, preceding references

may be invalid" may be caused by the incremental compiler.

More Information:

Basically, to get the warning to occur, a module must contain multiple

functions. Also, incremental compile must be on and the module must

have been compiled at least once before.

One of the functions towards the top of the file must then be changed,

sometimes somewhat extensively. All functions below the changed

function will then generate this warning.

A re-compilation will not generate this warning on the same file.

This warning may happen in a large project that has been compiled with

the incremental compiler many times, with many changes between each

compilation.