Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

C6515

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.

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 ...
}
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.