Compiler Warning (level 1) C4229


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on

The latest version of this topic can be found at Compiler Warning (level 1) C4229.

anachronism used : modifiers on data are ignored

Using a Microsoft modifier such as __cdecl on a data declaration is an outdated practice.

// C4229.cpp  
// compile with: /W1 /LD  
int __cdecl counter;   // C4229 cdecl ignored