Skip to content

Commit 24c7f0b

Browse files
Fix #14403 FP ignoredReturnValue for wxPanel::Layout() (#8224)
1 parent f7130c3 commit 24c7f0b

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

cfg/wxwidgets.cfg

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17078,12 +17078,16 @@ wxItemKind kind = wxITEM_NORMAL) -->
1707817078
<!-- bool wxWindow::Layout( void ) -->
1707917079
<!-- bool wxWindowBase::Layout( void ) -->
1708017080
<!-- bool wxGrid::Layout( void ) -->
17081-
<!-- bool wxPanel::Layout( void ) -->
17082-
<function name="wxWindow::Layout,wxWindowBase::Layout,wxFrame::Layout,wxGrid::Layout,wxPanel::Layout">
17081+
<function name="wxWindow::Layout,wxWindowBase::Layout,wxFrame::Layout,wxGrid::Layout">
1708317082
<noreturn>false</noreturn>
1708417083
<leak-ignore/>
1708517084
<returnValue type="bool"/>
1708617085
<use-retval/>
17086+
</function>
17087+
<!-- bool wxPanel::Layout( void ) -->
17088+
<function name="wxPanel::Layout">
17089+
<noreturn>false</noreturn>
17090+
<returnValue type="bool"/>
1708717091
</function>
1708817092
<!-- void wxSizer::Layout( void ) -->
1708917093
<!-- void wxBoxSizer::Layout( void ) -->

test/cfg/wxwidgets.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,10 @@ void ignoredReturnValue_wxDC_GetSizeMM(const wxDC &dc, wxCoord *width, wxCoord *
972972
(void)dc.GetSizeMM();
973973
}
974974

975+
void ignoredReturnValue_wxPanel_Layout(wxPanel* panel) { // #14403
976+
panel->Layout();
977+
}
978+
975979
wxSizerItem* invalidFunctionArgBool_wxSizer_Add(wxSizer *sizer, wxWindow * window, const wxSizerFlags &flags)
976980
{
977981
// No warning is expected for

0 commit comments

Comments
 (0)