From: José Fonseca Date: Mon, 14 Apr 2014 11:13:32 +0000 (+0100) Subject: util/u_debug: Add noreturn attribute to _debug_assert_fail(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f81305c0cbb0e233435a26f5e2a8a38dd752c25e;p=mesa.git util/u_debug: Add noreturn attribute to _debug_assert_fail(). As recommended by http://clang-analyzer.llvm.org/annotations.html#attr_noreturn Reviewed-by: Brian Paul --- diff --git a/src/gallium/auxiliary/util/u_debug.h b/src/gallium/auxiliary/util/u_debug.h index 9e4eb41dc29..857059730d9 100644 --- a/src/gallium/auxiliary/util/u_debug.h +++ b/src/gallium/auxiliary/util/u_debug.h @@ -154,7 +154,11 @@ debug_get_num_option(const char *name, long dfault); void _debug_assert_fail(const char *expr, const char *file, unsigned line, - const char *function); + const char *function) +#ifdef __GNUC__ + __attribute__((__noreturn__)) +#endif +; /**