From d919e6c00b99ae2196cadc517d2da3b3971465b3 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Thu, 12 Dec 2013 13:59:06 -0600 Subject: [PATCH] Fix error/warning conditional --- src/util.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 -- 2.43.0