提交 088cee65 authored 作者: Anthony Minessale's avatar Anthony Minessale

try to compensate for silly compiler issue

上级 c321e67a
...@@ -1613,10 +1613,12 @@ void launch_sofia_profile_thread(sofia_profile_t *profile) ...@@ -1613,10 +1613,12 @@ void launch_sofia_profile_thread(sofia_profile_t *profile)
static void logger(void *logarg, char const *fmt, va_list ap) static void logger(void *logarg, char const *fmt, va_list ap)
{ {
if (!fmt) /* gcc 4.4 gets mad at us for testing if (ap) so let's try to work around it....*/
return; void *ap_ptr = (void *) (intptr_t) ap;
if (!fmt) return;
if (ap) { if (ap_ptr) {
switch_log_vprintf(SWITCH_CHANNEL_LOG_CLEAN, mod_sofia_globals.tracelevel, fmt, ap); switch_log_vprintf(SWITCH_CHANNEL_LOG_CLEAN, mod_sofia_globals.tracelevel, fmt, ap);
} else { } else {
switch_log_printf(SWITCH_CHANNEL_LOG_CLEAN, mod_sofia_globals.tracelevel, "%s", fmt); switch_log_printf(SWITCH_CHANNEL_LOG_CLEAN, mod_sofia_globals.tracelevel, "%s", fmt);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论