mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:44:12 +08:00
test: fix logging for stupid MSVC.
This commit is contained in:
parent
4481555c90
commit
1431e3e5bf
@ -114,6 +114,7 @@ bool output(const logging::loglevel priority, const char *format, va_list ap) {
|
||||
prefix.c_str(), level2str(priority), suffix.c_str());
|
||||
|
||||
va_list ones;
|
||||
memset(&ones, 0, sizeof(ones)) /* zap MSVC and other stupid compilers */;
|
||||
if (priority >= error)
|
||||
va_copy(ones, ap);
|
||||
vfprintf(last, format, ap);
|
||||
|
Loading…
x
Reference in New Issue
Block a user