suppress warning about unused variable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
5b0040077d
commit
005b5298e4
@ -111,6 +111,15 @@ public:
|
|||||||
~wxCleanupOnExit() { wxEntryCleanup(); }
|
~wxCleanupOnExit() { wxEntryCleanup(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// private functions
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// suppress warnings about unused variables
|
||||||
|
static inline void Use(void *) { }
|
||||||
|
|
||||||
|
#define WX_SUPPRESS_UNUSED_WARN(x) Use(&x)
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// initialization data
|
// initialization data
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@ -380,6 +389,8 @@ int wxEntryReal(int& argc, wxChar **argv)
|
|||||||
// below returns or throws
|
// below returns or throws
|
||||||
wxCleanupOnExit cleanupOnExit;
|
wxCleanupOnExit cleanupOnExit;
|
||||||
|
|
||||||
|
WX_SUPPRESS_UNUSED_WARN(cleanupOnExit);
|
||||||
|
|
||||||
// app initialization
|
// app initialization
|
||||||
if ( !wxTheApp->OnInit() )
|
if ( !wxTheApp->OnInit() )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user