From 14dc770a74f27b6ec5b8da5e812d80e84e85834f Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sat, 11 Aug 2007 23:10:48 +0000 Subject: [PATCH] Silence warning on debug builds. I failed to make a small test case where optimization makes a difference in gcc being able to tell that a function didn't return. --- stepmania/src/ThemeManager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/ThemeManager.cpp b/stepmania/src/ThemeManager.cpp index fdb159d4f3..dda599ee58 100644 --- a/stepmania/src/ThemeManager.cpp +++ b/stepmania/src/ThemeManager.cpp @@ -688,6 +688,9 @@ RString ThemeManager::GetPathToAndFallback( ElementCategory category, const RStr RageException::Throw( "Infinite recursion looking up theme element \"%s\"", ClassAndElementToFileName(sClassName, sElement).c_str() ); + /* Not really reached, but Appple's gcc 4 can't figure that out without optimization + * even though RE:Throw() is correctly annotated. */ + while( true ) {} } RString ThemeManager::GetPath( ElementCategory category, const RString &sClassName_, const RString &sElement_, bool bOptional )