[vlc-commits] macosx: Silence warning about NSFontPanelModeMask

David Fuhrmann git at videolan.org
Sun Jun 10 13:48:48 CEST 2018


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Jun 10 13:47:28 2018 +0200| [6fd7cb84222704d2257fdb4341b3e62f063df2e8] | committer: David Fuhrmann

macosx: Silence warning about NSFontPanelModeMask

This should be able to be just replace the old NSUInteger, according
to docs.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6fd7cb84222704d2257fdb4341b3e62f063df2e8
---

 modules/gui/macosx/VLCSimplePrefsController.m | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/gui/macosx/VLCSimplePrefsController.m b/modules/gui/macosx/VLCSimplePrefsController.m
index 9ac96aba8e..0315a88f08 100644
--- a/modules/gui/macosx/VLCSimplePrefsController.m
+++ b/modules/gui/macosx/VLCSimplePrefsController.m
@@ -1227,10 +1227,14 @@ static inline void save_string_list(intf_thread_t * p_intf, id object, const cha
     [self osdSettingChanged:self];
 }
 
+// NSFontPanelModeMask is replacing NSUInteger, and should be backwards compatible
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wunguarded-availability-new"
 - (NSFontPanelModeMask)validModesForFontPanel:(NSFontPanel *)fontPanel
 {
     return NSFontPanelFaceModeMask | NSFontPanelCollectionModeMask;
 }
+#pragma clang diagnostic pop
 
 - (IBAction)inputSettingChanged:(id)sender
 {



More information about the vlc-commits mailing list