V1040. Possible typo in the spelling of a pre-defined macro name.
The analyzer has detected a potentially misspelled name of a pre-defined macro.
Non-compliant example:
#if defined (__linux__) || defined (__APPLE_)
The same expression fixed:
#if defined (__linux__) || defined (__APPLE__)
Another example demonstrating a typo:
#ifdef __WLN32__
Correct version:
#ifdef __WIN32__
You can look at examples of errors detected by the V1040 diagnostic. |