Suppress wxWidgets code analysis warnings
Rather than addressing numerous code analysis warnings Microsoft Visual Studio 2019 reports for wxWidgets upstream, disable code analysis for the time being. But only for the wxWidgets part. We still want to know what the code analysis has to say about our code. Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
154cd798e4
commit
de9535b961
@ -21,6 +21,8 @@
|
||||
|
||||
#include <Updater/chkthread.h>
|
||||
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable: WXWIDGETS_CODE_ANALYSIS_WARNINGS)
|
||||
#include <wx/app.h>
|
||||
#include <wx/config.h>
|
||||
#include <wx/dir.h>
|
||||
@ -28,5 +30,6 @@
|
||||
#include <wx/filename.h>
|
||||
#include <wx/init.h>
|
||||
#include <wx/scopedptr.h>
|
||||
#pragma warning(pop)
|
||||
|
||||
#include <wxex/common.h>
|
||||
|
@ -23,10 +23,13 @@
|
||||
|
||||
#include "UpdPublish.h"
|
||||
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable: WXWIDGETS_CODE_ANALYSIS_WARNINGS)
|
||||
#include <wx/app.h>
|
||||
#include <wx/base64.h>
|
||||
#include <wx/cmdline.h>
|
||||
#include <wx/xml/xml.h>
|
||||
#pragma warning(pop)
|
||||
|
||||
#include <wxex/crypto.h>
|
||||
#include <wxex/hex.h>
|
||||
|
@ -23,10 +23,13 @@
|
||||
|
||||
#include "UpdSignXML.h"
|
||||
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable: WXWIDGETS_CODE_ANALYSIS_WARNINGS)
|
||||
#include <wx/app.h>
|
||||
#include <wx/base64.h>
|
||||
#include <wx/cmdline.h>
|
||||
#include <wx/xml/xml.h>
|
||||
#pragma warning(pop)
|
||||
|
||||
#include <wxex/crypto.h>
|
||||
#include <wxex/xml.h>
|
||||
|
@ -21,12 +21,15 @@
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable: WXWIDGETS_CODE_ANALYSIS_WARNINGS)
|
||||
#include <wx/arrstr.h>
|
||||
#include <wx/config.h>
|
||||
#include <wx/event.h>
|
||||
#include <wx/string.h>
|
||||
#include <wx/thread.h>
|
||||
#include <wx/xml/xml.h>
|
||||
#pragma warning(pop)
|
||||
|
||||
#include <wxex/crypto.h>
|
||||
|
||||
|
@ -22,7 +22,6 @@
|
||||
|
||||
#include "../../../../include/UpdaterCfg.h"
|
||||
|
||||
|
||||
//
|
||||
// Resource IDs
|
||||
//
|
||||
@ -30,6 +29,11 @@
|
||||
|
||||
#if !defined(RC_INVOKED) && !defined(MIDL_PASS)
|
||||
|
||||
#include <codeanalysis\warnings.h>
|
||||
#ifndef WXWIDGETS_CODE_ANALYSIS_WARNINGS
|
||||
#define WXWIDGETS_CODE_ANALYSIS_WARNINGS ALL_CODE_ANALYSIS_WARNINGS 26812
|
||||
#endif
|
||||
|
||||
///
|
||||
/// Public function calling convention
|
||||
///
|
||||
|
@ -21,12 +21,15 @@
|
||||
|
||||
#include "../include/Updater/chkthread.h"
|
||||
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable: WXWIDGETS_CODE_ANALYSIS_WARNINGS)
|
||||
#include <wx/base64.h>
|
||||
#include <wx/buffer.h>
|
||||
#include <wx/filename.h>
|
||||
#include <wx/log.h>
|
||||
#include <wx/protocol/http.h>
|
||||
#include <wx/url.h>
|
||||
#pragma warning(pop)
|
||||
|
||||
#include <wxex/hex.h>
|
||||
#include <wxex/xml.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user