[Mesa-dev] [PATCH 3/3] util: Add __declspec(noreturn) to _debug_assert_fail().
jfonseca at vmware.com
jfonseca at vmware.com
Wed Apr 16 09:46:51 PDT 2014
From: José Fonseca <jfonseca at vmware.com>
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 ).
---
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,
--
1.8.3.2
More information about the mesa-dev
mailing list