projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a45a50a
)
util/u_debug: Add noreturn attribute to _debug_assert_fail().
author
José Fonseca
<jfonseca@vmware.com>
Mon, 14 Apr 2014 11:13:32 +0000
(12:13 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Wed, 16 Apr 2014 10:44:17 +0000
(11:44 +0100)
As recommended by
http://clang-analyzer.llvm.org/annotations.html#attr_noreturn
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/util/u_debug.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_debug.h
b/src/gallium/auxiliary/util/u_debug.h
index 9e4eb41dc293a59a0468ce8d06fe7b1b2dcbb72f..857059730d946992b607632ddada0a921fb1a65d 100644
(file)
--- 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
+;
/**