Closed bennyzhang closed 10 years ago
do { \ _Pragma("clang diagnostic push") \ _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"") \ Stuff; \ _Pragma("clang diagnostic pop") \ // setWantsFullScreenlayout:' is deprecated:first deprecated in iOS 7.0 } while (0)
Was this meant to be a pull request? Because this exact code block already exists in MMProgressHUDViewController. Or were you wanting the code referenced in your comment to be wrapped in this macro, too?
define suppressDeprecation(Stuff) \
do { \ _Pragma("clang diagnostic push") \ _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"") \ Stuff; \ _Pragma("clang diagnostic pop") \ // setWantsFullScreenlayout:' is deprecated:first deprecated in iOS 7.0 } while (0)