diff --git a/tests/font/fonttest.cpp b/tests/font/fonttest.cpp index 51078680a1..cd5f908ac4 100644 --- a/tests/font/fonttest.cpp +++ b/tests/font/fonttest.cpp @@ -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