This helps static analyzers.
va_start(argp, fmt);
(void)dlua_push_vfstring(L, fmt, argp);
va_end(argp);
- return lua_error(L);
+ (void)lua_error(L);
+ i_unreached();
}
void dlua_push_timeval(lua_State *L, const struct timeval *tv);
/* improved luaL_error, can handle full C format support */
-int dluaL_error(lua_State *L, const char *fmt, ...) ATTR_FORMAT(2, 3);
+int dluaL_error(lua_State *L, const char *fmt, ...) ATTR_FORMAT(2, 3)
+ ATTR_NORETURN;
#define luaL_error(...) dluaL_error(__VA_ARGS__)
/*