Add curly braces so va_list is at top of block as required by ISO C90
@@ -417,6 +417,7 @@ int SUNLogger_QueueMsg(SUNLogger logger, SUNLogLevel lvl, const char* scope,
}
#if SUNDIALS_LOGGING_LEVEL > 0
+ {
va_list args;
va_start(args, msg_txt);
@@ -468,6 +469,7 @@ int SUNLogger_QueueMsg(SUNLogger logger, SUNLogLevel lvl, const char* scope,
}
va_end(args);
+ }
#endif
return retval;
