From: Vadim Zeitlin Date: Thu, 9 Jul 2009 12:22:37 +0000 (+0000) Subject: disable MSVC deprecation warnings as we intentionally test deprecated methods in... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/48557701824338d11715f7132043b7179e59db27 disable MSVC deprecation warnings as we intentionally test deprecated methods in this test git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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 // ----------------------------------------------------------------------------