I want to use Code Analysis in Visual Studio 2017, but I am using Qt, and this gives me a lot of warnings from the headers. I tried disabling warnings:
#pragma warning(push, 0) #include <QtGlobal> #pragma warning(pop)
but it doesnβt help. I also tried using this :
#include <codeanalysis\warnings.h> #pragma warning(push, 0) #pragma warning(disable : ALL_CODE_ANALYSIS_WARNINGS) #include <QtGlobal> #pragma warning(pop)
but no help. How to disable code analysis for external Qt headers?
source share