Use static linkage for exception handler in iOS tester

This commit is contained in:
Guillaume BIENKOWSKI 2014-12-17 12:14:44 +01:00
parent d25722e3b5
commit f93b735575

View file

@ -20,7 +20,7 @@ static NSString * const kKEY_ExceptionCallStack = @"UnhandledExceptionCallStack"
static NSString * const kKEY_ExceptionScreenshot = @"UnhandledExceptionScreenshot";
static NSString * const kKEY_ExceptionTimestamp = @"UnhandledExceptionTimestamp";
__unused void unhandledExceptionHandler(NSException *exception) {
static void unhandledExceptionHandler(NSException *exception) {
NSMutableDictionary *crashReport = [NSMutableDictionary dictionary];
crashReport[kKEY_ExceptionName] = exception.name;
crashReport[kKEY_ExceptionReason] = exception.reason;