X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/542a26bace2a3c92779ecd926cbe3bf254ddc5ab..091111d693989a6be93685726db948cccb203347:/src/x11/clipbrd.cpp diff --git a/src/x11/clipbrd.cpp b/src/x11/clipbrd.cpp index 1e8fa4ba38..a523296de8 100644 --- a/src/x11/clipbrd.cpp +++ b/src/x11/clipbrd.cpp @@ -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 @@ -305,8 +306,6 @@ wxClipboard::wxClipboard() m_formatSupported = false; m_targetRequested = 0; - - m_usePrimary = false; } wxClipboard::~wxClipboard()