Share via


C6515

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

warning C6515 - invalid annotation: <name> property may only be used on values of pointer type

This warning indicates that a property for use on pointers was applied to a non-pointer type. For a list of annotation properties, see Annotation Properties.

Example

The following code generates this warning:

#include <sal.h>  
  
void f(_Readable_bytes_(c) char pc,  size_t c)  
{  
    // code ...  
}  

To correct this warning, use the following code:

#include <sal.h>  
  
void f(_Readable_bytes_(c) char * pc,  size_t c)  
{  
    // code ...  
}  

See Also

C6516