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:
@@ -688,6 +688,9 @@ RString ThemeManager::GetPathToAndFallback( ElementCategory category, const RStr
|
|||||||
|
|
||||||
RageException::Throw( "Infinite recursion looking up theme element \"%s\"",
|
RageException::Throw( "Infinite recursion looking up theme element \"%s\"",
|
||||||
ClassAndElementToFileName(sClassName, sElement).c_str() );
|
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 )
|
RString ThemeManager::GetPath( ElementCategory category, const RString &sClassName_, const RString &sElement_, bool bOptional )
|
||||||
|
|||||||
Reference in New Issue
Block a user