From 88d1801a892f16dcd0fe070332a3c1d0fd7018ec Mon Sep 17 00:00:00 2001 From: Guillaume BIENKOWSKI Date: Tue, 12 May 2015 10:35:59 +0200 Subject: [PATCH] Fix initializer warnings for iOS8 --- linphone_Prefix.pch | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/linphone_Prefix.pch b/linphone_Prefix.pch index aa4246941..f0d42b96a 100644 --- a/linphone_Prefix.pch +++ b/linphone_Prefix.pch @@ -6,3 +6,13 @@ #import #import #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 \ No newline at end of file