- 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

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -