]> git.saurik.com Git - wxWidgets.git/commitdiff
Compilation fix for wxUSE_LOG_DEBUG==0 case.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 18 May 2010 10:29:52 +0000 (10:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 18 May 2010 10:29:52 +0000 (10:29 +0000)
Don't do anything in wxDISABLE_DEBUG_LOGGING_IN_RELEASE_BUILD() if we don't
use debug logging anyhow.

Closes #12070.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/log.h

index c632435b62adbe73be41f8f4cae7ce231239673d..41933e853486266806274ce2fc5fd1085bcf0019 100644 (file)
@@ -1572,7 +1572,7 @@ wxSafeShowMessage(const wxString& title, const wxString& text);
 
 // macro which disables debug logging in release builds: this is done by
 // default by IMPLEMENT_APP() so usually it doesn't need to be used explicitly
-#ifdef NDEBUG
+#if defined(NDEBUG) && wxUSE_LOG_DEBUG
     #define wxDISABLE_DEBUG_LOGGING_IN_RELEASE_BUILD() \
         wxLog::SetLogLevel(wxLOG_Info)
 #else // !NDEBUG