diff options
author | José Fonseca <jfonseca@vmware.com> | 2014-04-14 12:13:32 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2014-04-16 11:44:17 +0100 |
commit | f81305c0cbb0e233435a26f5e2a8a38dd752c25e (patch) | |
tree | b7dbc4d978da8dc03f6ba56207e84616d27a5f85 | |
parent | a45a50a4828e1357e9555474bc127c5585b3a420 (diff) | |
download | mesa-f81305c0cbb0e233435a26f5e2a8a38dd752c25e.tar.gz |
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 <brianp@vmware.com>
-rw-r--r-- | src/gallium/auxiliary/util/u_debug.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 +; /** |