C6527
warning C6527: The NeedsRelease property may not be used on values of void type.
This warning indicates that NeedsRelease property is used on an invalid data type. To correct this warning, either remove the NeedsRelease property or use a data type that is supported by the NeedsRelease property.
Example
The following code generates this warning:
// C
#include <CodeAnalysis\SourceAnnotations.h>
void f([Post( Deref=1, NeedsRelease=SA_Yes )] void* p );
// C++
#include <CodeAnalysis\SourceAnnotations.h>
using namespace vc_attributes;
void fd([Post( Deref=1, NeedsRelease=Yes )] void* p );
To correct this warning, use the following code:
// C
#include <CodeAnalysis\SourceAnnotations.h>
void f([Post(Deref=1, NeedsRelease=SA_Yes)] char* pc);
// C++
include <CodeAnalysis\SourceAnnotations.h>
using namespace vc_attributes;
void f([Post(Deref=1, NeedsRelease=Yes)] char* pc);