Avoid unused variable warnings in !wxDEBUG_LEVEL builds.

Don't define a constant which is only used inside wxASSERT() at all if debug
checks are disabled.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2014-08-24 15:32:10 +00:00
parent 33a92d117b
commit b5c18cfec4

View File

@ -89,6 +89,8 @@ WX_DEFINE_EXPORTED_LIST( wxSizerItemList )
// ----------------------------------------------------------------------------
// check for flags conflicts
#if wxDEBUG_LEVEL
static const int SIZER_FLAGS_MASK =
wxADD_FLAG(wxCENTRE,
wxADD_FLAG(wxHORIZONTAL,
@ -110,6 +112,8 @@ static const int SIZER_FLAGS_MASK =
wxADD_FLAG(wxSHAPED,
0))))))))))))))))));
#endif // wxDEBUG_LEVEL
#define ASSERT_VALID_SIZER_FLAGS(f) wxASSERT_VALID_FLAGS(f, SIZER_FLAGS_MASK)