From 9e8b62f146a3b60cb00b35f044bcae73f573b620 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Fri, 22 Mar 2024 14:42:28 +0100 Subject: [PATCH] wxwidgets.cfg: Added support for wxVector and wxArray types --- cfg/wxwidgets.cfg | 6 ++++++ test/cfg/wxwidgets.cpp | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) 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