From 808ff104dcfb8319e4a38f73923620f05c1415e4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 21 Sep 2020 20:37:37 +0200 Subject: [PATCH] Don't compile wxGetSelectedButtonInGroup() if it's unused Now that this function is static, not using it results in warnings when building the ports not using it (e.g. wxX11). --- src/common/containr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/containr.cpp b/src/common/containr.cpp index d20098f869..cf5f630665 100644 --- a/src/common/containr.cpp +++ b/src/common/containr.cpp @@ -237,7 +237,7 @@ void wxControlContainer::SetLastFocus(wxWindow *win) // The following functions is used by wxSetFocusToChild() // -------------------------------------------------------------------- -#if wxUSE_RADIOBTN +#if defined(USE_RADIOBTN_NAV) namespace { @@ -268,7 +268,7 @@ wxRadioButton* wxGetSelectedButtonInGroup(const wxRadioButton *btn) } // anonymous namespace -#endif // wxUSE_RADIOBTN +#endif // USE_RADIOBTN_NAV // ---------------------------------------------------------------------------- // Keyboard handling - this is the place where the TAB traversal logic is