# 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__)
# define ENABLE_ASSERTIONS 1
#endif
+
#ifdef ENABLE_DEBUG
extern void
wimlib_debug(const tchar *file, int line, const char *func,