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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user