From 53b974d86c6cfdd2e1335c44e2454b29d3c2fee8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 13 Feb 2008 22:43:31 +0000 Subject: [PATCH] don't define TRACE_MASK if it's not used (fixes gcc warning) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/stdpaths.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/msw/stdpaths.cpp b/src/msw/stdpaths.cpp index 96fe3e23e7..cc192f5e41 100644 --- a/src/msw/stdpaths.cpp +++ b/src/msw/stdpaths.cpp @@ -50,7 +50,9 @@ typedef HRESULT (WINAPI *SHGetSpecialFolderPath_t)(HWND, LPTSTR, int, BOOL); // ---------------------------------------------------------------------------- // used in our wxLogTrace messages -static const wxChar *TRACE_MASK = _T("stdpaths"); +#if wxUSE_LOG && wxUSE_LOG_DEBUG + static const wxChar *TRACE_MASK = _T("stdpaths"); +#endif #ifndef CSIDL_APPDATA #define CSIDL_APPDATA 0x001a