mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-30 14:14:43 +00:00
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:
parent
c8b418036f
commit
41706cb4d9
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user