In your project properties, see the settings under C++, External Includes.
[C++] [VS 2022] How to ignore warnings from external libraries
Hello,
I have a C++ project and I would like to treat my warnings as errors (/W4 /WX).
My project has various dependencies on various libraries (using vcpkg), and for some reason warnings from their headers are shown during compilations.
First of all, I absolutely don't care about these warnings - they are external libraries, as long as they work fine I am not going to rewrite them, I only care about warnings related to my code.
Second, because the Error List is flooded with these "false positives", it is difficult to find actual warnings related to my code.
Lastly, I cannot compile my project because of warnings in external libraries and I am treating warnings as errors.
How can I tell Visual studio to stop doing that?