]> wimlib.net Git - wimlib/blobdiff - include/wimlib/error.h
Remove verify_dentry(); separate refcnt recalc. from verify_inode()
[wimlib] / include / wimlib / error.h
index 7e0a7cedbe025ec106a7a84cec6297940012ae90..8dd48c180c29091bf6a1d4dfce00f01cd7f55fdf 100644 (file)
@@ -45,7 +45,9 @@ wimlib_warning_with_errno(const tchar *format, ...)
 #  define ERROR_WITH_ERRNO(format, ...)        wimlib_error_with_errno(T(format), ## __VA_ARGS__)
 #  define WARNING(format, ...)                 wimlib_warning(T(format), ## __VA_ARGS__)
 #  define WARNING_WITH_ERRNO(format, ...)      wimlib_warning_with_errno(T(format), ## __VA_ARGS__)
+extern bool wimlib_print_errors;
 #else /* ENABLE_ERROR_MESSAGES */
+#  define wimlib_print_errors 0
 #  define ERROR(format, ...)                   dummy_tprintf(T(format), ## __VA_ARGS__)
 #  define ERROR_WITH_ERRNO(format, ...)                dummy_tprintf(T(format), ## __VA_ARGS__)
 #  define WARNING(format, ...)                 dummy_tprintf(T(format), ## __VA_ARGS__)
@@ -60,6 +62,7 @@ wimlib_warning_with_errno(const tchar *format, ...)
 #  define ENABLE_ASSERTIONS 1
 #endif
 
+
 #ifdef ENABLE_DEBUG
 extern void
 wimlib_debug(const tchar *file, int line, const char *func,