We recommend using Visual Studio 2017



The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at C6997.

warning 6997: Annotations at this location are meaningless and will be ignored.

Annotations cannot be applied to extern "C" {...}. Apply the annotations to a specific object.

Using SAL Annotations to Reduce C/C++ Code Defects