From dd83b9fa11e543b2b1b5f6dd04247d46152a4740 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Fri, 2 Apr 2004 08:32:31 +0000 Subject: [PATCH] Cleanup. My headers do not seem to declare it as not returning. On the other hand, I cannot get any other program using longjmp() to cause gcc to emit a warning about not returning a value. --- stepmania/src/LuaHelpers.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/stepmania/src/LuaHelpers.cpp b/stepmania/src/LuaHelpers.cpp index eca38f1ffb..1474466fd9 100644 --- a/stepmania/src/LuaHelpers.cpp +++ b/stepmania/src/LuaHelpers.cpp @@ -118,10 +118,6 @@ static int LuaPanic( lua_State *L ) * an exception from there. */ jbuf_error = err; longjmp( jbuf, 1 ); - /* This causes an "unreachable code" warning in VC. If you're getting a "control reaches - * end of function" warning, then your headers aren't correctly marking longjmp as NORETURN. - * My headers (glibc 2.3.2) do. -glenn */ -// return 0; // control never reaches here but quiets warning } bool Lua::RunExpression( const CString &str )