1. There is a #include statement in the header file of the class cxmlerror defined in VC6.0.
#include
#include
Class CXMLERROR
{
...
}
When using Level 4 compile, report C4100, C4511, C4512, C4663, C4245, C4018 Several WARNING
2. Modified as follows:
#pragma Warning (Push)
#pragma Warning (DISABLE: 4100 4511 4512 4663 4245 4018)
#include
#include
#pragma Warning (POP)
At this time, a large number of C4514 warnings were produced.
3. Remnounce
#pragma Warning (Push)
#pragma Warning (Disable: 4100 4511 4512 4663 4245 4018 4514)
#include
#include
#pragma Warning (POP)
The results are still as above, have a large number of C4514 warnings, a small amount of 4663, 4245, 4108.
4. Remove the following:
#pragma Warning (Disable: 4100 4511 4512 4663 4245 4018 4514)
#pragma Warning (Push)
#include
#include
#pragma Warning (POP)
The result is only 4663, 4245, 4108
Since the 4663, 4245, 4108 can't remove 4663, 4245, 4108
5. Also modified to the header file to compile in Level 3, as follows:
#pragma Warning (Disable: 4514)
#pragma Warning (Push, 3)
#include
#include
#pragma Warning (POP)
The result is no warning.
6. Try to modify as follows:
#include
#pragma Warning (Push, 3)
#include
#pragma Warning (POP)
The result is no warning.
summary:
1. When using #pragma Warning, it should only be processed for the header file generated by the warning, it is
2. When using #pragma warning (push), use #pragma warning (disable: xxxx), you can try to exchange two statements, which may be #pragma Warning bug in VC6.0.