TSAGE: Silence uninitialized variable usage warning.

Instead of passing an uninitialized dummy va_list to Action::attached we just
pass the va parameter from SequenceManager::attached to it now, since that
parameter is not used in Action::attached, it is safe to do that.
This commit is contained in:
Johannes Schickel 2011-04-13 23:31:41 +02:00
parent c8b418036f
commit 41706cb4d9

View File

@ -320,12 +320,7 @@ void SequenceManager::attached(EventHandler *newOwner, EventHandler *fmt, va_lis
}
setup();
// TODO: This is not particulary nice, since dummy is uninitialized.
// Since the default Action implementation does not access the va_list
// parameter it should be fine though. Still it would be nice to find
// a better solution to this.
va_list dummy;
Action::attached(newOwner, fmt, dummy);
Action::attached(newOwner, fmt, va);
}
/**