From dddaaa7e22845434bd03b71859c5b70c36e8b1ca Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 21 Jan 2004 03:17:14 +0000 Subject: [PATCH] hack to quiet a warning --- stepmania/src/global.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/global.h b/stepmania/src/global.h index 551aec70ff..460c3675b1 100644 --- a/stepmania/src/global.h +++ b/stepmania/src/global.h @@ -86,7 +86,8 @@ namespace Checkpoints #define NORETURN #endif -static inline void NORETURN crash() { *(char*)0=0; } +/* The infinite loop isn't actually reached; it's just there to shut up a warning. */ +static inline void NORETURN crash() { *(char*)0=0; while(1) ; } /* Assertion that sets an optional message and brings up the crash handler, so * we get a backtrace. This should probably be used instead of throwing an