Avoid gcc deprecation warnings for wxNORMAL in the tests

We use wxNORMAL intentionally to test for its support, so we're not interested
in deprecation warnings about it.
This commit is contained in:
Vadim Zeitlin 2016-02-26 14:36:01 +01:00
parent cb49eb5162
commit b58c87db28

View File

@ -114,10 +114,14 @@ void FontTestCase::Construct()
#pragma warning(disable:4996)
#endif
wxGCC_WARNING_SUPPRESS(deprecated-declarations)
// Tests relying on the soon-to-be-deprecated ctor taking ints and not
// wxFontXXX enum elements.
CPPUNIT_ASSERT( wxFont(10, wxDEFAULT, wxNORMAL, wxNORMAL).IsOk() );
wxGCC_WARNING_RESTORE()
#ifdef __VISUALC__
#pragma warning(pop)
#endif