Fix bug in Windows optimized build

This commit is contained in:
Dmitri Tikhonov 2018-05-06 21:39:19 -04:00
parent aff2a1d865
commit 7b1586dd81

View file

@ -177,11 +177,11 @@ print_timestamp (void)
gettimeofday(&tv, NULL); gettimeofday(&tv, NULL);
#ifdef WIN32 #ifdef WIN32
{ {
#ifndef NDEBUG
errno_t e;
#endif
time_t t = tv.tv_sec; time_t t = tv.tv_sec;
e = localtime_s(&tm, &t); #ifndef NDEBUG
errno_t e =
#endif
localtime_s(&tm, &t);
assert(!e); assert(!e);
} }
#else #else