diff --git a/cfg/wxwidgets.cfg b/cfg/wxwidgets.cfg index fcacd404ba6..dd40002550a 100644 --- a/cfg/wxwidgets.cfg +++ b/cfg/wxwidgets.cfg @@ -35,6 +35,9 @@ wxFontInfo wxFontList wxFontMetrics + wxGBPosition + wxGBSizerItem + wxGBSpan wxGraphicsGradientStop wxGraphicsGradientStops wxGridBagSizer diff --git a/test/cfg/wxwidgets.cpp b/test/cfg/wxwidgets.cpp index 54cc78d1434..e516cb39e6b 100644 --- a/test/cfg/wxwidgets.cpp +++ b/test/cfg/wxwidgets.cpp @@ -129,6 +129,22 @@ void unreadVariable_wxDCBrushChanger(wxDC &dc, const wxBrush &brush) wxDCBrushChanger a(dc, brush); } +void unreadVariable_wxGBSpan(const int x) +{ + // cppcheck-suppress unusedVariable + wxGBSpan a; + // cppcheck-suppress unreadVariable + wxGBSpan b(x, x); +} + +void unreadVariable_wxGBPosition(const int x) +{ + // cppcheck-suppress unusedVariable + wxGBPosition a; + // cppcheck-suppress unreadVariable + wxGBPosition b(x, x); +} + void unreadVariable_wxWrapSizer(const int x) { // cppcheck-suppress unreadVariable @@ -141,6 +157,12 @@ void unreadVariable_wxGridBagSizer(const int x) wxGridBagSizer a(x, x); } +void unreadVariable_wxGBSizerItem(const int x, const wxGBPosition &pos) +{ + // cppcheck-suppress unreadVariable + wxGBSizerItem a(x, x, pos); +} + void unreadVariable_wxSizerItem(const int x) { // cppcheck-suppress unreadVariable