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:
parent
cb49eb5162
commit
b58c87db28
@ -114,10 +114,14 @@ void FontTestCase::Construct()
|
|||||||
#pragma warning(disable:4996)
|
#pragma warning(disable:4996)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
wxGCC_WARNING_SUPPRESS(deprecated-declarations)
|
||||||
|
|
||||||
// Tests relying on the soon-to-be-deprecated ctor taking ints and not
|
// Tests relying on the soon-to-be-deprecated ctor taking ints and not
|
||||||
// wxFontXXX enum elements.
|
// wxFontXXX enum elements.
|
||||||
CPPUNIT_ASSERT( wxFont(10, wxDEFAULT, wxNORMAL, wxNORMAL).IsOk() );
|
CPPUNIT_ASSERT( wxFont(10, wxDEFAULT, wxNORMAL, wxNORMAL).IsOk() );
|
||||||
|
|
||||||
|
wxGCC_WARNING_RESTORE()
|
||||||
|
|
||||||
#ifdef __VISUALC__
|
#ifdef __VISUALC__
|
||||||
#pragma warning(pop)
|
#pragma warning(pop)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user