util: Add __declspec(noreturn) to _debug_assert_fail().
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 16 Apr 2014 16:45:56 +0000 (17:45 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 17 Apr 2014 08:56:49 +0000 (09:56 +0100)
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@vmware.com>
src/gallium/auxiliary/util/u_debug.h

index 857059730d946992b607632ddada0a921fb1a65d..9c414211b3fc43dc777347618d727ebbf232a908 100644 (file)
@@ -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,