AUDIO: Fix ReportHandlerScummVM::printDebug in MT32 code.

Formerly it tried to pass 'va_list' as '...' to debug. Now it's first creating
a String containing the output via String::vformat and then passing it
to debug.

Found by buildbot (master-dc). The warning message was:
audio/softsynth/mt32.cpp:65: warning: cannot pass objects of non-POD type
`struct va_list' through `...'; call will abort at runtime
This commit is contained in:
Johannes Schickel 2013-07-04 14:44:41 +02:00
parent baafae672f
commit d7ff665737

View File

@ -62,7 +62,8 @@ protected:
// Callback for debug messages, in vprintf() format
void printDebug(const char *fmt, va_list list) {
debug(4, fmt, list);
Common::String out = Common::String::vformat(fmt, list);
debug(4, out.c_str());
}
// Callbacks for reporting various errors and information