Fix build failure due to warning about unused macOS-only method.
authorCarl Hetherington <cth@carlh.net>
Sat, 16 Jan 2021 14:16:11 +0000 (15:16 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 16 Jan 2021 14:16:11 +0000 (15:16 +0100)
src/wx/wx_util.cc

index d20d755cf3a9a571945ae7353e15947ba1f878b6..192724b13328ba496a87ab38198b14da71efe16e 100644 (file)
@@ -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.