summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2014-04-14 12:13:32 +0100
committerJosé Fonseca <[email protected]>2014-04-16 11:44:17 +0100
commitf81305c0cbb0e233435a26f5e2a8a38dd752c25e (patch)
treeb7dbc4d978da8dc03f6ba56207e84616d27a5f85 /src/gallium/auxiliary
parenta45a50a4828e1357e9555474bc127c5585b3a420 (diff)
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 <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/u_debug.h6
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
+;
/**