From: Carl Hetherington Date: Sat, 16 Jan 2021 14:16:11 +0000 (+0100) Subject: Fix build failure due to warning about unused macOS-only method. X-Git-Tag: v2.15.123~2 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=e1e27c1301f42e0bd11fb9de5b1ebb8c7c6d0c8a Fix build failure due to warning about unused macOS-only method. --- diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc index d20d755cf..192724b13 100644 --- a/src/wx/wx_util.cc +++ b/src/wx/wx_util.cc @@ -66,6 +66,7 @@ create_label (wxWindow* p, wxString t, bool) } +#ifdef __WXOSX__ static void setup_osx_flags (wxSizer* s, bool left, int& flags) @@ -77,6 +78,7 @@ setup_osx_flags (wxSizer* s, bool left, int& flags) } } } +#endif /** Add a wxStaticText to a wxSizer, aligning it at vertical centre.