From 5a5498ef88e20edce9610cd2f6ce8b9914dfc14f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grisez?= Date: Tue, 24 Nov 2015 11:47:59 +0100 Subject: [PATCH] Fix build issues --- Classes/DialerViewController.m | 2 +- Classes/SettingsViewController.m | 3 +-- linphone.xcodeproj/project.pbxproj | 4 ++++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Classes/DialerViewController.m b/Classes/DialerViewController.m index b4a7d6dfa..0148217ea 100644 --- a/Classes/DialerViewController.m +++ b/Classes/DialerViewController.m @@ -253,7 +253,7 @@ static UICompositeViewDescription *compositeDescription = nil; [controller setToRecipients:recipients]; if (attachLogs) { - char *filepath = linphone_core_compress_log_collection([LinphoneManager getLc]); + char *filepath = linphone_core_compress_log_collection(); if (filepath == NULL) { LOGE(@"Cannot sent logs: file is NULL"); return; diff --git a/Classes/SettingsViewController.m b/Classes/SettingsViewController.m index c856fe490..7135d9348 100644 --- a/Classes/SettingsViewController.m +++ b/Classes/SettingsViewController.m @@ -781,11 +781,10 @@ static UICompositeViewDescription *compositeDescription = nil; #pragma mark - Mail composer for sending logs - (void)sendEmailWithDebugAttachments { - LinphoneCore *lc = [LinphoneManager getLc]; NSMutableArray *attachments = [[NSMutableArray alloc] initWithCapacity:3]; // retrieve linphone logs if available - char *filepath = linphone_core_compress_log_collection(lc); + char *filepath = linphone_core_compress_log_collection(); if (filepath != NULL) { NSString *filename = [[NSString stringWithUTF8String:filepath] componentsSeparatedByString:@"/"].lastObject; NSString *mimeType = nil; diff --git a/linphone.xcodeproj/project.pbxproj b/linphone.xcodeproj/project.pbxproj index 511f78930..e0cacc735 100755 --- a/linphone.xcodeproj/project.pbxproj +++ b/linphone.xcodeproj/project.pbxproj @@ -4656,6 +4656,7 @@ GCC_THUMB_SUPPORT = NO; GCC_VERSION = com.apple.compilers.llvm.clang.1_0; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; @@ -4741,6 +4742,7 @@ GCC_THUMB_SUPPORT = NO; GCC_VERSION = com.apple.compilers.llvm.clang.1_0; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; @@ -4826,6 +4828,7 @@ GCC_THUMB_SUPPORT = NO; GCC_VERSION = com.apple.compilers.llvm.clang.1_0; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; @@ -4912,6 +4915,7 @@ GCC_THUMB_SUPPORT = NO; GCC_VERSION = com.apple.compilers.llvm.clang.1_0; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES;