Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
warning C6505: invalid annotation: MustCheck property may not be used on values of void type
This warning indicated that MustCheck property was used on a void data type. You cannot use MustCheck property on void type. Either remove the MustCheck property or use another data type.
Example
The following code generates this warning:
#include <sal.h>
_Must_inspect_result_ void f()
{
//Code ...
}
To correct this warning, use the following code:
#include <sal.h>
_Must_inspect_result_ char* f()
{
char *str ="Hello World";
//Code ...
return str;
}