diff --git a/cfg/wxwidgets.cfg b/cfg/wxwidgets.cfg
index d74a95dd6..e14253ee8 100644
--- a/cfg/wxwidgets.cfg
+++ b/cfg/wxwidgets.cfg
@@ -1571,7 +1571,7 @@
-
+
true
@@ -1580,6 +1580,20 @@
+
+
+ false
+
+
+
+
+
+
+
+ false
+
+
+
diff --git a/test/cfg/wxwidgets.cpp b/test/cfg/wxwidgets.cpp
index acceeaebe..9d2e01976 100644
--- a/test/cfg/wxwidgets.cpp
+++ b/test/cfg/wxwidgets.cpp
@@ -20,6 +20,7 @@
#include
#include
#include
+#include
void validCode()
{
@@ -126,6 +127,15 @@ void uninitvar(wxWindow &w)
w.Close(uninitBool);
}
+void uninitvar_wxStaticText(wxStaticText &s)
+{
+ // no warning
+ s.Wrap(-1);
+ bool uninitBool;
+ // cppcheck-suppress uninitvar
+ s.Wrap(uninitBool);
+}
+
void uninitvar_wxString_NumberConversion(const wxString &str, const int numberBase)
{
int uninitInteger;