C++ Tip [warning surpressing]

All, Tips

Sometimes we are facing so many warning that we cant just ignore them. Actually we should not, at least by Cpp Coding Standard by Andrei Alexandrescu. In this book, it is recommended to clean those high level warnings.

To do this in VS 2015 we just need to change the project properties by adding the Specific Warning. So going in the project configuration, below C/C++ tab, in Advanced Settings and adding the code to be ignored in ”Disable Specific Warning”

Source: https://msdn.microsoft.com/en-us/library/jj715718.aspx

Image demonstrating how to do it:

Warning