diff --git a/cfg/wxwidgets.cfg b/cfg/wxwidgets.cfg index 53ed2369f18..3d4926b9185 100644 --- a/cfg/wxwidgets.cfg +++ b/cfg/wxwidgets.cfg @@ -17,6 +17,12 @@ wxTimeSpan wxDateSpan wxAcceleratorEntry + wxVector + wxArrayInt + wxArrayDouble + wxArrayShort + wxArrayString + wxArrayPtrVoid diff --git a/test/cfg/wxwidgets.cpp b/test/cfg/wxwidgets.cpp index 7a9f3faf1cf..92a51af7d63 100644 --- a/test/cfg/wxwidgets.cpp +++ b/test/cfg/wxwidgets.cpp @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -38,8 +39,45 @@ #include #include #include +#include #include +void unusedVariable_wxVector() +{ + // cppcheck-suppress unusedVariable + wxVector a; +} + +void unusedVariable_wxArrayInt() +{ + // cppcheck-suppress unusedVariable + wxArrayInt a; +} + +void unusedVariable_wxArrayDouble() +{ + // cppcheck-suppress unusedVariable + wxArrayDouble a; +} + +void unusedVariable_wxArrayShort() +{ + // cppcheck-suppress unusedVariable + wxArrayShort a; +} + +void unusedVariable_wxArrayString() +{ + // cppcheck-suppress unusedVariable + wxArrayString a; +} + +void unusedVariable_wxArrayPtrVoid() +{ + // cppcheck-suppress unusedVariable + wxArrayPtrVoid a; +} + void unreadVariable_wxColour(const unsigned char uc, const wxString &name, const unsigned long colRGB, const wxColour &colour) { // cppcheck-suppress unusedVariable