]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/clipbrd.cpp
DoGetBestSize fix, the lbWidth was not getting updated because of a
[wxWidgets.git] / src / x11 / clipbrd.cpp
index 80a7a15d25a331ed6d2ab48df0137e48d861939f..69494fb10b592c9b90c5546a1520926c3081bbb5 100644 (file)
@@ -32,11 +32,17 @@ Atom  g_clipboardAtom   = 0;
 Atom  g_targetsAtom     = 0;
 #endif
 
+// 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
 // (there will be a *lot* of them!)
 static const wxChar *TRACE_CLIPBOARD = _T("clipboard");
 
+#endif // __WXDEBUG__
+
 //-----------------------------------------------------------------------------
 // reminder
 //-----------------------------------------------------------------------------