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.

This commit is contained in:
Steve Checkoway
2007-08-11 23:10:48 +00:00
parent 08fd66c576
commit 14dc770a74
+3
View File
@@ -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 )