- Where Developers Learn, Share, & Build Careers
I'm getting a compile time error, it complains that I'm starting a variable, but it is not referenced What I am doing is that I initialize it and then create a debug print statement which is compiled for debug build only, but not the release build. The error in the query is c4189 (this has been considered as an error and will not compile).
Is it possible to suppress this warning? How about the warnings in general?
Do not suppress the warning, fix it! Wrap the variable declaration and initialization, so it exists only in debug build.
Comments
Post a Comment