From b58c87db287407f5a47477a3f9a00e18e756718e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 26 Feb 2016 14:36:01 +0100 Subject: [PATCH] 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. --- tests/font/fonttest.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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