diff --git a/cfg/wxwidgets.cfg b/cfg/wxwidgets.cfg
index ef84dae1b5c..fb89fc6a7dd 100644
--- a/cfg/wxwidgets.cfg
+++ b/cfg/wxwidgets.cfg
@@ -10,6 +10,7 @@
wxArrayShort
wxArrayString
wxBitmap
+ wxBitmapBundle
wxBrush
wxChar
wxUniChar
diff --git a/test/cfg/wxwidgets.cpp b/test/cfg/wxwidgets.cpp
index 5e0cb1b8fe3..5a0411921a1 100644
--- a/test/cfg/wxwidgets.cpp
+++ b/test/cfg/wxwidgets.cpp
@@ -16,6 +16,9 @@
#include
#include
#include
+#if wxCHECK_VERSION(3, 1, 6) // wxWidets-3.1.6 or higher
+#include
+#endif
#include
#include
#include
@@ -58,7 +61,25 @@
#include
#include
-void unusedVariable_wxIconLocation(const wxIcon &icon)
+#if wxCHECK_VERSION(3, 1, 6) // wxWidets-3.1.6 or higher
+void unreadVariable_wxBitmapBundle(const wxBitmap &bmp, const wxIcon &icon, const wxImage &image, const char *const * xpm, const wxBitmapBundle &bundle)
+{
+ // cppcheck-suppress unusedVariable
+ wxBitmapBundle a;
+ // cppcheck-suppress unreadVariable
+ wxBitmapBundle b(bmp);
+ // cppcheck-suppress unreadVariable
+ wxBitmapBundle c(icon);
+ // cppcheck-suppress unreadVariable
+ wxBitmapBundle d(image);
+ // cppcheck-suppress unreadVariable
+ wxBitmapBundle e(xpm);
+ // cppcheck-suppress unreadVariable
+ wxBitmapBundle f(bundle);
+}
+#endif
+
+void unusedVariable_wxIconLocation()
{
// cppcheck-suppress unusedVariable
wxIconLocation a;