I am using the following code snippet in my AppDelegate.m
to catch exceptions:
void uncaughtExceptionHandler(NSException *exception)
{
NSLog(@"CRASH: %@", exception);
NSLog(@"Stack Trace: %@", [exception callStackSymbols]);
}
How can I avoid this warning:
Semantic Issue: No previous prototype for function 'uncaughtExceptionHandler
'?