From 2786fb1502e664c71ba097a84784f4d65fb79a61 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Thu, 30 Mar 2023 00:00:55 -0700 Subject: [PATCH] error.h: cleanup debris from removal of --disable-error-messages --- include/wimlib/error.h | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/include/wimlib/error.h b/include/wimlib/error.h index e332903f..0e44d334 100644 --- a/include/wimlib/error.h +++ b/include/wimlib/error.h @@ -7,12 +7,6 @@ #include "wimlib/compiler.h" #include "wimlib/types.h" -static inline int _format_attribute(printf, 1, 2) -dummy_tprintf(const tchar *format, ...) -{ - return 0; -} - void wimlib_error(const tchar *format, ...) _format_attribute(printf, 1, 2) _cold_attribute; @@ -28,10 +22,12 @@ wimlib_warning(const tchar *format, ...) void wimlib_warning_with_errno(const tchar *format, ...) _format_attribute(printf, 1, 2) _cold_attribute; -# define ERROR(format, ...) wimlib_error(T(format), ## __VA_ARGS__) -# 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__) + +#define ERROR(format, ...) wimlib_error(T(format), ## __VA_ARGS__) +#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; extern FILE *wimlib_error_file; -- 2.43.0