From 63a8a852f9d5995eea59c761cbbe5b0b5968adaf Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sun, 1 Oct 2017 09:46:56 -0700 Subject: [PATCH] Avoid unused variable warning --- tests/controls/textctrltest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/controls/textctrltest.cpp b/tests/controls/textctrltest.cpp index c65d91045f..175d46d011 100644 --- a/tests/controls/textctrltest.cpp +++ b/tests/controls/textctrltest.cpp @@ -696,7 +696,9 @@ void TextCtrlTestCase::DoPositionToXYMultiLine(long style) delete m_text; CreateText(style|wxTE_MULTILINE|wxTE_DONTWRAP); +#if defined(__WXMSW__) const bool isRichEdit = (style & (wxTE_RICH | wxTE_RICH2)) != 0; +#endif typedef struct { long x, y; } XYPos; bool ok; @@ -916,7 +918,9 @@ void TextCtrlTestCase::DoXYToPositionMultiLine(long style) delete m_text; CreateText(style|wxTE_MULTILINE|wxTE_DONTWRAP); +#if defined(__WXMSW__) const bool isRichEdit = (style & (wxTE_RICH | wxTE_RICH2)) != 0; +#endif wxString text; // empty field