]> wimlib.net Git - wimlib/blobdiff - include/wimlib/error.h
Remove some unnecessary configure options
[wimlib] / include / wimlib / error.h
index 06222a06f03050fd4c16cdd798a01ec2561ed1c1..75b48c1b2da97bc913ecd80c6835a1fa6aeb9fd9 100644 (file)
@@ -13,7 +13,6 @@ dummy_tprintf(const tchar *format, ...)
        return 0;
 }
 
-#ifdef ENABLE_ERROR_MESSAGES
 extern void
 wimlib_error(const tchar *format, ...)
        _format_attribute(printf, 1, 2) _cold_attribute;
@@ -35,14 +34,6 @@ wimlib_warning_with_errno(const tchar *format, ...)
 #  define WARNING_WITH_ERRNO(format, ...)      wimlib_warning_with_errno(T(format), ## __VA_ARGS__)
 extern bool wimlib_print_errors;
 extern FILE *wimlib_error_file;
-#else /* ENABLE_ERROR_MESSAGES */
-#  define wimlib_print_errors 0
-#  define wimlib_error_file NULL
-#  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 WARNING_WITH_ERRNO(format, ...)      dummy_tprintf(T(format), ## __VA_ARGS__)
-#endif /* !ENABLE_ERROR_MESSAGES */
 
 extern void
 print_byte_field(const u8 *field, size_t len, FILE *out);