wxwidgets.cfg: Fixed false positive because Cppcheck cfg is not able to handle overloaded functions
This commit is contained in:
parent
56abbc1d42
commit
184977730c
|
@ -10453,7 +10453,10 @@
|
|||
<arg nr="1" direction="in"/>
|
||||
</function>
|
||||
<!-- wxSize wxDC::GetSize( void ) const -->
|
||||
<!-- void GetSize (wxCoord *width, wxCoord *height) const -->
|
||||
<!-- wxSize wxDC::GetSizeMM( void ) const -->
|
||||
<!-- void GetSizeMM (wxCoord *width, wxCoord *height) const -->
|
||||
<!-- Derived classes: -->
|
||||
<!-- wxSize wxGCDC::GetSizeMM( void ) const -->
|
||||
<!-- wxSize wxGCDC::GetSize( void ) const -->
|
||||
<!-- wxSize wxClientDC::GetSize( void ) const-->
|
||||
|
@ -10468,8 +10471,9 @@
|
|||
<noreturn>false</noreturn>
|
||||
<const/>
|
||||
<leak-ignore/>
|
||||
<returnValue type="wxSize"/>
|
||||
<use-retval/>
|
||||
<returnValue/>
|
||||
<arg nr="1" default="0" direction="out"/>
|
||||
<arg nr="2" default="0" direction="out"/>
|
||||
</function>
|
||||
<!-- wxDataViewColumn* wxDataViewListCtrl::AppendTextColumn(const wxString & label, wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT, int width = -1, wxAlignment align = wxALIGN_LEFT, int flags = wxDATAVIEW_COL_RESIZABLE) -->
|
||||
<!-- wxDataViewColumn* wxDataViewListCtrl::AppendToggleColumn(const wxString & label, wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT, int width = -1, wxAlignment align = wxALIGN_LEFT, int flags = wxDATAVIEW_COL_RESIZABLE) -->
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/app.h>
|
||||
#include <wx/dc.h>
|
||||
#include <wx/log.h>
|
||||
#include <wx/filefn.h>
|
||||
#include <wx/spinctrl.h>
|
||||
|
@ -27,6 +28,22 @@
|
|||
#include <wx/textctrl.h>
|
||||
#include <wx/propgrid/property.h>
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue