From 2b9bdc52d78e25f57e7054e22f0420c6d5a5d4c9 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Thu, 22 Nov 2018 13:31:09 +0100 Subject: [PATCH] wxwidgets.cfg: Added support for wxWindow::Close() and derived classes. --- cfg/wxwidgets.cfg | 10 ++++++++++ test/cfg/wxwidgets.cpp | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/cfg/wxwidgets.cfg b/cfg/wxwidgets.cfg index 74b890129..d74a95dd6 100644 --- a/cfg/wxwidgets.cfg +++ b/cfg/wxwidgets.cfg @@ -1570,6 +1570,16 @@ + + + + true + + + + + + diff --git a/test/cfg/wxwidgets.cpp b/test/cfg/wxwidgets.cpp index 54ad0b5e6..acceeaebe 100644 --- a/test/cfg/wxwidgets.cpp +++ b/test/cfg/wxwidgets.cpp @@ -110,17 +110,20 @@ void invalidFunctionArg(const wxString &str) (void)str.ToLong(&l, 37); } -void uninitvar(void) +void uninitvar(wxWindow &w) { wxLogLevel logLevelUninit; char cBufUninit[10]; char *pcUninit; + bool uninitBool; // cppcheck-suppress uninitvar wxLogGeneric(logLevelUninit, "test"); // cppcheck-suppress uninitvar wxLogMessage(cBufUninit); // cppcheck-suppress uninitvar wxLogMessage(pcUninit); + // cppcheck-suppress uninitvar + w.Close(uninitBool); } void uninitvar_wxString_NumberConversion(const wxString &str, const int numberBase)