X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0b5750291a6edda78a42ba64e656932277e4aeaf..9154a136d5e1d79a4be2cf012e4a815fdc6df3ff:/src/x11/clipbrd.cpp?ds=sidebyside diff --git a/src/x11/clipbrd.cpp b/src/x11/clipbrd.cpp index c5abc23ce8..a523296de8 100644 --- a/src/x11/clipbrd.cpp +++ b/src/x11/clipbrd.cpp @@ -32,11 +32,15 @@ Atom g_clipboardAtom = 0; Atom g_targetsAtom = 0; #endif -#ifdef __WXDEBUG__ +// 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__ //----------------------------------------------------------------------------- @@ -302,8 +306,6 @@ wxClipboard::wxClipboard() m_formatSupported = false; m_targetRequested = 0; - - m_usePrimary = false; } wxClipboard::~wxClipboard()