1

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.

4

1 回答 1

1

使用 Visual Studio,您可以使用禁用警告#pragma

#pragma warning( disable : 4090 )

或者您可以通过

项目属性-> C/C++ ->高级->禁用特定警告

您应该尝试修复您的代码,而不是忽略此警告。

你应该阅读这个线程这篇关于编译器警告的文章。

于 2013-09-17T09:34:12.433 回答