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

This commit is contained in:
Michael Jerris 2015-08-21 18:47:47 -04:00
parent 9cb58fbf1a
commit f929a9ccbf
1 changed files with 1 additions and 2 deletions

View File

@ -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) {
char *var = (char *) switch_xml_attr_soft(param, "name");
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);
int found = 1; // Used to break up long if/elseif chain (MSVC2015 fails (parser stack overflow) otherwise)
if (!strcasecmp(var, "debug")) {
profile->debug = atoi(val);