forked from mirrors/linphone-iphone
Fix initializer warnings for iOS8
This commit is contained in:
parent
23239e3a8a
commit
88d1801a89
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
Loading…
Add table
Reference in a new issue