diff --git a/cfg/wxwidgets.cfg b/cfg/wxwidgets.cfg
index dd42c600bd1..a5a3b3242b8 100644
--- a/cfg/wxwidgets.cfg
+++ b/cfg/wxwidgets.cfg
@@ -5,6 +5,8 @@
wxRect
wxSize
wxPoint
+ wxPoint2DInt
+ wxPoint2DDouble
wxRealPoint
wxVersionInfo
wxRegion
diff --git a/test/cfg/wxwidgets.cpp b/test/cfg/wxwidgets.cpp
index 85e233cdf9a..f3bfdf7d856 100644
--- a/test/cfg/wxwidgets.cpp
+++ b/test/cfg/wxwidgets.cpp
@@ -13,6 +13,7 @@
#include
#include
#include
+#include
#include
#include
#include
@@ -36,6 +37,32 @@
#include
#include
+void unreadVariable_wxPoint2DInt(const wxInt32 x, const wxPoint2DInt& pti, const wxPoint &pt)
+{
+ // cppcheck-suppress unreadVariable
+ wxPoint2DInt a;
+ // cppcheck-suppress unreadVariable
+ wxPoint2DInt b(x, x);
+ // cppcheck-suppress unreadVariable
+ wxPoint2DInt c(pti);
+ // cppcheck-suppress unreadVariable
+ wxPoint2DInt d(pt);
+}
+
+void unreadVariable_wxPoint2DDouble(const wxDouble x, const wxPoint2DDouble& ptd, const wxPoint2DInt& pti, const wxPoint &pt)
+{
+ // cppcheck-suppress unreadVariable
+ wxPoint2DDouble a;
+ // cppcheck-suppress unreadVariable
+ wxPoint2DDouble b(x, x);
+ // cppcheck-suppress unreadVariable
+ wxPoint2DDouble c(ptd);
+ // cppcheck-suppress unreadVariable
+ wxPoint2DDouble d(pti);
+ // cppcheck-suppress unreadVariable
+ wxPoint2DDouble e(pt);
+}
+
void unreadVariable_wxAcceleratorEntry()
{
// cppcheck-suppress unreadVariable