Reputation: 11793
All, I was using the RtlZeroMemory to empty the memory in my project. But when I build the project I got a warning says warning C4090: 'function' : different 'const' qualifiers
for below code.
RtlZeroMemory(&copiedRelatedObj, FltObjects->Size);
After researching, I found it doesn't matter with this warning, But It stop the build process . How I ignore or disable this warning ? thanks.
Upvotes: 1
Views: 1970
Reputation: 14510
With Visual Studio you can disable warning using #pragma
#pragma warning( disable : 4090 )
Or you can do it for all your project via
Project Properties -> C/C++ -> Advanced -> Disable Specific Warnings
You should try to fix your code instead of ignoring this warning.
You should read this thread and this article about compiler warnings.
Upvotes: 1