diff --git a/tests/log/logtest.cpp b/tests/log/logtest.cpp index 089ef82c51..f1dbb8cffa 100644 --- a/tests/log/logtest.cpp +++ b/tests/log/logtest.cpp @@ -23,6 +23,14 @@ #include "wx/scopeguard.h" +#if WXWIN_COMPATIBILITY_2_8 + // we override deprecated DoLog() and DoLogString() in this test, suppress + // warnings about it + #if wxCHECK_VISUALC_VERSION(7) + #pragma warning(disable: 4996) + #endif // VC++ 7+ +#endif // WXWIN_COMPATIBILITY_2_8 + // ---------------------------------------------------------------------------- // test loggers // ----------------------------------------------------------------------------