From b170a9c61e18a52084b075f46d642f235f6bf78a Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Sat, 2 Jul 2022 09:24:22 +0200 Subject: [PATCH] wxwidgets.cfg: Fixed wrong configuration of wxRegEx::GetMatch(). --- cfg/wxwidgets.cfg | 4 ++-- test/cfg/wxwidgets.cpp | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/cfg/wxwidgets.cfg b/cfg/wxwidgets.cfg index 67e0dda50..e561a6709 100644 --- a/cfg/wxwidgets.cfg +++ b/cfg/wxwidgets.cfg @@ -13679,8 +13679,8 @@ wxItemKind kind = wxITEM_NORMAL) --> - - + + diff --git a/test/cfg/wxwidgets.cpp b/test/cfg/wxwidgets.cpp index 229ce5384..7180950ea 100644 --- a/test/cfg/wxwidgets.cpp +++ b/test/cfg/wxwidgets.cpp @@ -22,12 +22,27 @@ #include #include #include +#include #include #include #include #include #include +void uninitvar_wxRegEx_GetMatch(wxRegEx &obj, size_t *start, size_t *len, size_t index) +{ + size_t s,l; + size_t *sPtr,*lPtr; + // cppcheck-suppress uninitvar + (void)obj.GetMatch(&s,lPtr); + // TODO cppcheck-suppress uninitvar + (void)obj.GetMatch(sPtr,&l); + (void)obj.GetMatch(&s,&l); + (void)obj.GetMatch(start,len); + (void)obj.GetMatch(start,len,0); + (void)obj.GetMatch(start,len,index); +} + #ifdef __VISUALC__ // Ensure no duplicateBreak warning is issued after wxLogApiError() calls. // This function does not terminate execution.