made definition of wxUSE_LOG_DEBUG dependent on wxDEBUG_LEVEL and added wxUSE_LOG_TRACE (currently never enabled by default); fix warnings about unused variables after these changes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-03-22 17:18:07 +00:00
parent 8a9464893a
commit 711f12ef2e
9 changed files with 174 additions and 193 deletions

View File

@@ -720,7 +720,7 @@ public:
wxThreadState GetState() const { return m_state; }
void SetState(wxThreadState state)
{
#ifdef __WXDEBUG__
#if wxUSE_LOG_TRACE
static const wxChar *stateNames[] =
{
_T("NEW"),
@@ -731,7 +731,7 @@ public:
wxLogTrace(TRACE_THREADS, _T("Thread %p: %s => %s."),
GetId(), stateNames[m_state], stateNames[state]);
#endif // __WXDEBUG__
#endif // wxUSE_LOG_TRACE
m_state = state;
}