From a8bd40d571e66216ae9ae5c3a6c5aa5fee2409df Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 24 Aug 2014 13:35:29 +0000 Subject: [PATCH] Avoid unused variable warning in wxUSE_DATAOBJ==0 build. Declare variable only used when wxUSE_DATAOBJ==1 inside the check for it. Closes #16434. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/stc/ScintillaWX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stc/ScintillaWX.cpp b/src/stc/ScintillaWX.cpp index dc3512ee25..67d966de87 100644 --- a/src/stc/ScintillaWX.cpp +++ b/src/stc/ScintillaWX.cpp @@ -499,11 +499,11 @@ void ScintillaWX::Copy() { void ScintillaWX::Paste() { pdoc->BeginUndoAction(); ClearSelection(multiPasteMode == SC_MULTIPASTE_EACH); - bool isRectangularClipboard = false; #if wxUSE_DATAOBJ wxTextDataObject data; bool gotData = false; + bool isRectangularClipboard = false; wxTheClipboard->UsePrimarySelection(false); if (wxTheClipboard->Open()) {