From f929a9ccbfec37ea694ff9862c1e886ac3aeabb5 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 21 Aug 2015 18:47:47 -0400 Subject: [PATCH] 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 --- src/mod/endpoints/mod_sofia/sofia.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 8cad5ea62a..a2f8004155 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -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);