From fe716b3c8e8abc8883e3709b861c69fa576bd9f5 Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Fri, 15 Apr 2016 02:34:18 +0000 Subject: [PATCH] Fix 'not enough actual parameters for macro' warning The macro wxGCC_WARNING_RESTORE is being used without a parameter which MSVC warns about. Fix by passing the same parameter as when using wxGCC_WARNING_SUPPRESS, namely deprecated-declarations. Regression since b58c87db287407f5a47477a3f9a00e18e756718e. --- tests/font/fonttest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/font/fonttest.cpp b/tests/font/fonttest.cpp index cd5f908ac4..3491af6fcf 100644 --- a/tests/font/fonttest.cpp +++ b/tests/font/fonttest.cpp @@ -120,7 +120,7 @@ void FontTestCase::Construct() // wxFontXXX enum elements. CPPUNIT_ASSERT( wxFont(10, wxDEFAULT, wxNORMAL, wxNORMAL).IsOk() ); - wxGCC_WARNING_RESTORE() + wxGCC_WARNING_RESTORE(deprecated-declarations) #ifdef __VISUALC__ #pragma warning(pop)