mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-16 11:52:01 +00:00
Merge pull request #2851 from signalwire/imagick
[mod_imagick] Fix build on newer compiler by adding noreturn attribute.
This commit is contained in:
commit
7a650efc3c
@ -488,9 +488,16 @@ static void myErrorHandler(const ExceptionType t, const char *reason, const char
|
|||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "%s: %s\n", reason, description);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "%s: %s\n", reason, description);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void myFatalErrorHandler(const ExceptionType t, const char *reason, const char *description)
|
static
|
||||||
|
#if defined(_MSC_VER) && defined(_WIN32)
|
||||||
|
#else
|
||||||
|
__attribute__((noreturn))
|
||||||
|
#endif
|
||||||
|
void myFatalErrorHandler(const ExceptionType t, const char *reason, const char *description)
|
||||||
{
|
{
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "%s: %s\n", reason, description);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "%s: %s\n", reason, description);
|
||||||
|
/* Make sure the function never returns */
|
||||||
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void myWarningHandler(const ExceptionType t, const char *reason, const char *description)
|
static void myWarningHandler(const ExceptionType t, const char *reason, const char *description)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user