diff options
author | José Fonseca <[email protected]> | 2014-04-16 17:45:56 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2014-04-17 09:56:49 +0100 |
commit | 75e487538db95271377d36ff09c9e5d9758d0739 (patch) | |
tree | 1b67b8e848a2452da0912de34043eb18b3b9f01b /src/gallium/auxiliary/util | |
parent | a2b89c4ae1c94005b3762e7ff06d73096fa97644 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r-- | src/gallium/auxiliary/util/u_debug.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_debug.h b/src/gallium/auxiliary/util/u_debug.h index 857059730d9..9c414211b3f 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, |