Fix initializer warnings for iOS8

This commit is contained in:
Guillaume BIENKOWSKI 2015-05-12 10:35:59 +02:00
parent 23239e3a8a
commit 88d1801a89

View file

@ -6,3 +6,13 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#endif
#ifdef __IPHONE_8_0
// suppress these errors until we are ready to handle them
#pragma message "Ignoring designated initializer warnings"
#pragma clang diagnostic ignored "-Wobjc-designated-initializers"
#else
// temporarily define an empty NS_DESIGNATED_INITIALIZER so we can use now,
// will be ready for iOS8 SDK
#define NS_DESIGNATED_INITIALIZER
#endif