Mesa (master): util: Add __declspec(noreturn) to _debug_assert_fail().
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Thu Apr 17 08:56:55 UTC 2014
Module: Mesa
Branch: master
Commit: 75e487538db95271377d36ff09c9e5d9758d0739
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=75e487538db95271377d36ff09c9e5d9758d0739
Author: José Fonseca <jfonseca at vmware.com>
Date: Wed Apr 16 17:45:56 2014 +0100
util: Add __declspec(noreturn) to _debug_assert_fail().
Mostly for consistency; as MSVC's static source code analysis doesn't
seem to rely on assertions, but instead on different kind of source
annotations( http://msdn.microsoft.com/en-us/library/hh916383.aspx ).
Reviewed-by: Brian Paul <brianp at vmware.com>
---
src/gallium/auxiliary/util/u_debug.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gallium/auxiliary/util/u_debug.h b/src/gallium/auxiliary/util/u_debug.h
index 8570597..9c41421 100644
--- a/src/gallium/auxiliary/util/u_debug.h
+++ b/src/gallium/auxiliary/util/u_debug.h
@@ -151,6 +151,9 @@ void debug_print_format(const char *msg, unsigned fmt );
long
debug_get_num_option(const char *name, long dfault);
+#ifdef _MSC_VER
+__declspec(noreturn)
+#endif
void _debug_assert_fail(const char *expr,
const char *file,
unsigned line,
More information about the mesa-commit
mailing list