diff --git a/src/gallium/auxiliary/util/u_debug.h b/src/gallium/auxiliary/util/u_debug.h index 03fcf43..26fb6bb 100644 --- a/src/gallium/auxiliary/util/u_debug.h +++ b/src/gallium/auxiliary/util/u_debug.h @@ -164,8 +164,8 @@ void _debug_assert_fail(const char *expr, const char *file, unsigned line, const char *function) -#ifdef __GNUC__ - __attribute__((__noreturn__)) +#if defined(__GNUC__) && !defined(DEBUG) + __attribute__((noreturn)) #endif ;