From 655b343246bc9ed5d066d7499d04932de0d7ced3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 6 Jul 2020 13:06:03 +0200 Subject: [PATCH] Avoid unused variable warning in wxRibbon with wxUSE_TOOLTIPS==0 --- src/ribbon/buttonbar.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ribbon/buttonbar.cpp b/src/ribbon/buttonbar.cpp index f4648c6a87..7e631d88a0 100644 --- a/src/ribbon/buttonbar.cpp +++ b/src/ribbon/buttonbar.cpp @@ -1303,6 +1303,8 @@ void wxRibbonButtonBar::OnMouseMove(wxMouseEvent& evt) { SetToolTip(tooltipButton->base->help_string); } +#else + wxUnusedVar(tooltipButton); #endif if(new_hovered != m_hovered_button || (m_hovered_button != NULL &&