Visual C++ Compiler Warning C4008

Message Text

'identifier' : 'attribute' attribute ignored

Circumstances

This warning condition occurs when a function that the compiler recognises as requiring external linkage is declared with the __forceinline, inline (including __inline) or static attribute.

Severity

This is a level 3 warning.

Be aware however that Microsoft’s documentation says this warning may also occur at level 2. The example given is the application of __fastcall to data. Perhaps this produced warning C4008 in previous versions. Along with other modifiers on data, it is now dismissed as an anachronism (warning C4229).