From: Eric Biggers Date: Thu, 12 Dec 2013 19:59:06 +0000 (-0600) Subject: Fix error/warning conditional X-Git-Tag: v1.6.0~162 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=d919e6c00b99ae2196cadc517d2da3b3971465b3 Fix error/warning conditional --- diff --git a/src/util.c b/src/util.c index 262fa1e1..728dae3f 100644 --- a/src/util.c +++ b/src/util.c @@ -153,9 +153,10 @@ static void wimlib_vmsg(const tchar *tag, const tchar *format, va_list va, bool perror) { -#ifndef DEBUG - if (wimlib_print_errors) { +#if !defined(ENABLE_DEBUG) + if (wimlib_print_errors) #endif + { int errno_save = errno; fflush(stdout); tfputs(tag, stderr); @@ -178,9 +179,7 @@ wimlib_vmsg(const tchar *tag, const tchar *format, tputc(T('\n'), stderr); fflush(stderr); errno = errno_save; -#ifndef DEBUG } -#endif } #endif