diff --git a/tests/drawing/fonttest.cpp b/tests/drawing/fonttest.cpp index c7c0a0457d..c439dfca3d 100644 --- a/tests/drawing/fonttest.cpp +++ b/tests/drawing/fonttest.cpp @@ -36,7 +36,9 @@ GraphicsContextDrawingTestCase::ms_drawingFontTc = { void GraphicsContextDrawingTestCase::DoFontDrawings (wxGraphicsContext *gc) { #ifdef __WXGTK__ + wxGCC_WARNING_SUPPRESS(deprecated-declarations) g_type_init(); + wxGCC_WARNING_RESTORE() #endif // This test is expected to treat about fonts/texts. Fonts are a bit special