diff --git a/cfg/wxwidgets.cfg b/cfg/wxwidgets.cfg
index e207fe0ea..78138aa0c 100644
--- a/cfg/wxwidgets.cfg
+++ b/cfg/wxwidgets.cfg
@@ -22,6 +22,8 @@
+
+
@@ -9076,7 +9078,7 @@
-
+
false
@@ -9123,7 +9125,7 @@
-
+
false
diff --git a/test/cfg/wxwidgets.cpp b/test/cfg/wxwidgets.cpp
index 3ee4b8365..abe538612 100644
--- a/test/cfg/wxwidgets.cpp
+++ b/test/cfg/wxwidgets.cpp
@@ -28,11 +28,29 @@
#include
#include
+wxString containerOutOfBounds_wxArrayString(void)
+{
+ wxArrayString a;
+ a.Add("42");
+ a.Clear();
+ // cppcheck-suppress containerOutOfBounds
+ return a[0];
+}
+
+int containerOutOfBounds_wxArrayInt(void)
+{
+ wxArrayInt a;
+ a.Add(42);
+ a.Clear();
+ // cppcheck-suppress containerOutOfBounds
+ return a[0];
+}
+
void ignoredReturnValue_wxDC_GetSize(const wxDC &dc, wxCoord *width, wxCoord *height)
{
// No warning is expected for
dc.GetSize(width, height);
- // Now warning is expected for
+ // No warning is expected for
(void)dc.GetSize();
}