提交 f929a9cc authored 作者: Michael Jerris's avatar Michael Jerris

FS-7966: we still need to do declarations first until we fully switch to 2015…

FS-7966: we still need to do declarations first until we fully switch to 2015 and change the flags on other builds to not error on code before declaration
上级 9cb58fbf
...@@ -4231,10 +4231,9 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name) ...@@ -4231,10 +4231,9 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name)
for (param = switch_xml_child(settings, "param"); param; param = param->next) { for (param = switch_xml_child(settings, "param"); param; param = param->next) {
char *var = (char *) switch_xml_attr_soft(param, "name"); char *var = (char *) switch_xml_attr_soft(param, "name");
char *val = (char *) switch_xml_attr_soft(param, "value"); char *val = (char *) switch_xml_attr_soft(param, "value");
int found = 1; // Used to break up long if/elseif chain (MSVC2015 fails (parser stack overflow) otherwise)
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "%s [%s]\n", var, val); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "%s [%s]\n", var, val);
int found = 1; // Used to break up long if/elseif chain (MSVC2015 fails (parser stack overflow) otherwise)
if (!strcasecmp(var, "debug")) { if (!strcasecmp(var, "debug")) {
profile->debug = atoi(val); profile->debug = atoi(val);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论