From 98951f582a1a8ea089e17e59d753726f79deaa61 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Wed, 27 Mar 2024 21:50:05 +0100 Subject: [PATCH] wxwidgets.cfg: Added support for more interfaces (#6196) --- cfg/wxwidgets.cfg | 2 ++ test/cfg/wxwidgets.cpp | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/cfg/wxwidgets.cfg b/cfg/wxwidgets.cfg index 2f4ad54a247..da1fbe15efe 100644 --- a/cfg/wxwidgets.cfg +++ b/cfg/wxwidgets.cfg @@ -17,6 +17,7 @@ wxUniChar wxUniCharRef wxColour + wxCursor wxDateSpan wxFileType wxFont @@ -28,6 +29,7 @@ wxIcon wxIconLocation wxImage + wxMask wxPen wxPenList wxPoint diff --git a/test/cfg/wxwidgets.cpp b/test/cfg/wxwidgets.cpp index 553ada84a2a..6da7f492c8d 100644 --- a/test/cfg/wxwidgets.cpp +++ b/test/cfg/wxwidgets.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -80,12 +81,30 @@ void unreadVariable_wxBitmapBundle(const wxBitmap &bmp, const wxIcon &icon, cons } #endif +void unusedVariable_wxCursor() +{ + // cppcheck-suppress unusedVariable + wxCursor a; +} + void unusedVariable_wxBitmapHandler() { // cppcheck-suppress unusedVariable wxBitmapHandler a; } +void unreadVariable_wxMask(const wxBitmap &bmp, int x, const wxColour & colour) +{ + // cppcheck-suppress unusedVariable + wxMask a; + // cppcheck-suppress unreadVariable + wxMask b(bmp); + // cppcheck-suppress unreadVariable + wxMask c(bmp, x); + // cppcheck-suppress unreadVariable + wxMask d(bmp, colour); +} + void unreadVariable_wxGraphicsGradientStops() { // cppcheck-suppress unusedVariable