]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix harmless unused parameter warning.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 24 Jul 2009 12:34:48 +0000 (12:34 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 24 Jul 2009 12:34:48 +0000 (12:34 +0000)
'info' was only used with WXWIN_COMPATIBILITY_2_8 on in  wxLog::DoLogRecord().

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

src/common/log.cpp

index a55bee4511fb1e4792bd3e593c08c23db4b357c6..1d3ae8fffa51773193970140b26e6dab75d8b46f 100644 (file)
@@ -381,7 +381,9 @@ void wxLog::DoLogRecord(wxLogLevel level,
     // but to call both of them
     DoLog(level, (const char*)msg.mb_str(), info.timestamp);
     DoLog(level, (const wchar_t*)msg.wc_str(), info.timestamp);
-#endif // WXWIN_COMPATIBILITY_2_8
+#else // !WXWIN_COMPATIBILITY_2_8
+    wxUnusedVar(info);
+#endif // WXWIN_COMPATIBILITY_2_8/!WXWIN_COMPATIBILITY_2_8
 
 
     // TODO: it would be better to extract message formatting in a separate