]> wimlib.net Git - wimlib/commitdiff
Fix error/warning conditional
authorEric Biggers <ebiggers3@gmail.com>
Thu, 12 Dec 2013 19:59:06 +0000 (13:59 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Thu, 12 Dec 2013 19:59:06 +0000 (13:59 -0600)
src/util.c

index 262fa1e1fa65d96c186d7753279beda6c72a6efa..728dae3f13b1c181bb5a98a619ebdd28deb3ffdc 100644 (file)
@@ -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