diff --git a/cfg/wxwidgets.cfg b/cfg/wxwidgets.cfg index e55f3c848..9ed2eab5b 100644 --- a/cfg/wxwidgets.cfg +++ b/cfg/wxwidgets.cfg @@ -10453,7 +10453,10 @@ + + + @@ -10468,8 +10471,9 @@ false - - + + + diff --git a/test/cfg/wxwidgets.cpp b/test/cfg/wxwidgets.cpp index 023d39746..3ee4b8365 100644 --- a/test/cfg/wxwidgets.cpp +++ b/test/cfg/wxwidgets.cpp @@ -9,6 +9,7 @@ #include #include +#include #include #include #include @@ -27,6 +28,22 @@ #include #include +void ignoredReturnValue_wxDC_GetSize(const wxDC &dc, wxCoord *width, wxCoord *height) +{ + // No warning is expected for + dc.GetSize(width, height); + // Now warning is expected for + (void)dc.GetSize(); +} + +void ignoredReturnValue_wxDC_GetSizeMM(const wxDC &dc, wxCoord *width, wxCoord *height) +{ + // No warning is expected for + dc.GetSizeMM(width, height); + // Now warning is expected for + (void)dc.GetSizeMM(); +} + wxSizerItem* invalidFunctionArgBool_wxSizer_Add(wxSizer *sizer, wxWindow * window, const wxSizerFlags &flags) { // No warning is expected for