Skip to content

Commit

Permalink
wxwidgets.cfg: Added support for more interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitcowboy committed Apr 2, 2024
1 parent 9f28644 commit 883e5ac
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cfg/wxwidgets.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
<check>wxColourDatabase</check>
<check>wxCursor</check>
<check>wxDateSpan</check>
<check>wxDelegateRendererNative</check>
<check>wxHeaderButtonParams</check>
<check>wxRendererNative</check>
<check>wxRendererVersion</check>
<check>wxTextWrapper</check>
<check>wxDCClipper</check>
<check>wxDCBrushChanger</check>
<check>wxDCFontChanger</check>
Expand Down Expand Up @@ -62,7 +67,9 @@
<check>wxTIFFHandler</check>
<check>wxXPMHandler</check>
<check>wxMask</check>
<check>wxMetafile</check>
<check>wxNativeFontInfo</check>
<check>wxPalette</check>
<check>wxPen</check>
<check>wxPenList</check>
<check>wxPoint</check>
Expand All @@ -71,11 +78,13 @@
<check>wxPosition</check>
<check>wxRealPoint</check>
<check>wxRegion</check>
<check>wxRegionIterator</check>
<check>wxRegEx</check>
<check>wxRect</check>
<check>wxSize</check>
<check>wxSizer</check>
<check>wxSizerItem</check>
<check>wxSplitterRenderParams</check>
<check>wxStaticBoxSizer</check>
<check>wxStdDialogButtonSizer</check>
<check>wxSystemOptions</check>
Expand Down
34 changes: 34 additions & 0 deletions test/cfg/wxwidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,16 @@
#include <wx/mimetype.h>
#if defined(__WXMSW__)
#include <wx/msw/ole/automtn.h>
#include <wx/metafile.h>
#include <wx/msw/ole/oleutils.h>
#endif
#include <wx/palette.h>
#include <wx/pen.h>
#include <wx/position.h>
#include <wx/propgrid/property.h>
#include <wx/regex.h>
#include <wx/region.h>
#include <wx/renderer.h>
#include <wx/settings.h>
#include <wx/spinctrl.h>
#include <wx/sizer.h>
Expand Down Expand Up @@ -202,6 +205,30 @@ void unreadVariable_wxStaticBoxSizer(wxStaticBox *box, const int orient, wxWindo
wxStaticBoxSizer c(orient, parent, label);
}

void unusedVariable_wxDelegateRendererNative()
{
// cppcheck-suppress unusedVariable
wxDelegateRendererNative a;
}

void unusedVariable_wxHeaderButtonParams()
{
// cppcheck-suppress unusedVariable
wxHeaderButtonParams a;
}

void unusedVariable_wxRegionIterator()
{
// cppcheck-suppress unusedVariable
wxRegionIterator a;
}

void unusedVariable_wxPalette()
{
// cppcheck-suppress unusedVariable
wxPalette a;
}

void unusedVariable_wxJPEGHandler()
{
// cppcheck-suppress unusedVariable
Expand Down Expand Up @@ -425,6 +452,13 @@ void unreadVariable_wxVariant(wxVariantData *data,
}

#if defined(__WXMSW__)

void unusedVariable_wxMetafile()
{
// cppcheck-suppress unusedVariable
wxMetafile a;
}

void unusedVariable_wxVariantDataErrorCode()
{
// cppcheck-suppress unusedVariable
Expand Down

0 comments on commit 883e5ac

Please sign in to comment.