From d4576a8739652a8d96d0a689b30e5e4d3f806f57 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 15 Sep 2019 15:29:29 -0700 Subject: [PATCH] Suppress availability warning for overrideUserInterfaceStyle field --- Limelight/ViewControllers/SettingsViewController.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Limelight/ViewControllers/SettingsViewController.h b/Limelight/ViewControllers/SettingsViewController.h index fc571b63..a3b8a074 100644 --- a/Limelight/ViewControllers/SettingsViewController.h +++ b/Limelight/ViewControllers/SettingsViewController.h @@ -21,8 +21,14 @@ @property (strong, nonatomic) IBOutlet UISegmentedControl *hevcSelector; @property (strong, nonatomic) IBOutlet UIScrollView *scrollView; +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunguarded-availability" + +// This is okay because it's just an enum and access uses @available checks @property(nonatomic) UIUserInterfaceStyle overrideUserInterfaceStyle; +#pragma clang diagnostic pop + - (void) saveSettings; @end