diff --git a/cfg/wxwidgets.cfg b/cfg/wxwidgets.cfg index fb89fc6a7dd..2f4ad54a247 100644 --- a/cfg/wxwidgets.cfg +++ b/cfg/wxwidgets.cfg @@ -11,6 +11,7 @@ wxArrayString wxBitmap wxBitmapBundle + wxBitmapHandler wxBrush wxChar wxUniChar @@ -21,6 +22,9 @@ wxFont wxFontInfo wxFontList + wxFontMetrics + wxGraphicsGradientStop + wxGraphicsGradientStops wxIcon wxIconLocation wxImage @@ -5413,7 +5417,8 @@ - + + false diff --git a/test/cfg/wxwidgets.cpp b/test/cfg/wxwidgets.cpp index 5a0411921a1..553ada84a2a 100644 --- a/test/cfg/wxwidgets.cpp +++ b/test/cfg/wxwidgets.cpp @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -79,6 +80,38 @@ void unreadVariable_wxBitmapBundle(const wxBitmap &bmp, const wxIcon &icon, cons } #endif +void unusedVariable_wxBitmapHandler() +{ + // cppcheck-suppress unusedVariable + wxBitmapHandler a; +} + +void unreadVariable_wxGraphicsGradientStops() +{ + // cppcheck-suppress unusedVariable + wxGraphicsGradientStops a; + // cppcheck-suppress unreadVariable + wxGraphicsGradientStops b(wxTransparentColour); + // cppcheck-suppress unreadVariable + wxGraphicsGradientStops c(wxTransparentColour, wxTransparentColour); +} + +void unreadVariable_wxGraphicsGradientStop() +{ + // cppcheck-suppress unusedVariable + wxGraphicsGradientStop a; + // cppcheck-suppress unreadVariable + wxGraphicsGradientStop b(wxTransparentColour); + // cppcheck-suppress unreadVariable + wxGraphicsGradientStop c(wxTransparentColour, 0.42); +} + +void unusedVariable_wxFontMetrics() +{ + // cppcheck-suppress unusedVariable + wxFontMetrics a; +} + void unusedVariable_wxIconLocation() { // cppcheck-suppress unusedVariable