]> git.saurik.com Git - wxWidgets.git/commitdiff
really define TRACE_CLIPBOARD (fix for the last commit)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 4 Nov 2006 11:03:46 +0000 (11:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 4 Nov 2006 11:03:46 +0000 (11:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/x11/clipbrd.cpp

index 1e8fa4ba38359694e9874f16906d0c62db1c00a0..69494fb10b592c9b90c5546a1520926c3081bbb5 100644 (file)
@@ -32,8 +32,9 @@ Atom  g_clipboardAtom   = 0;
 Atom  g_targetsAtom     = 0;
 #endif
 
-// avoid warnings about unused static variable
-#if defined(__WXDEBUG__) && defined(HAVE_VARIADIC_MACROS)
+// avoid warnings about unused static variable (notice that we still use it
+// even in release build if the compiler doesn't support variadic macros)
+#if defined(__WXDEBUG__) || !defined(HAVE_VARIADIC_MACROS)
 
 // the trace mask we use with wxLogTrace() - call
 // wxLog::AddTraceMask(TRACE_CLIPBOARD) to enable the trace messages from here