Article ID: 120968 - Last Review: July 5, 2005 - Revision: 1.1 BUG: Limitation w/ Disabling Warnings Above 4699 w/ #pragmaThis article was previously published under Q120968 On This PageSYMPTOMS
Disabling a warning with #pragma warning will not succeed if the pragma is
placed within the function where the warning occurs and the warning has a
value of 4700 or greater.
CAUSE
Warnings greater than 4699 are generated by the second and third passes of
the compiler.
RESOLUTION
To disable warnings with a value of 4700 or greater, place the #pragma
warning outside of any function.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. MORE INFORMATIONSample CodeThe following sample code demonstrates the problem:APPLIES TO
| Article Translations
|
Back to the top
