diff --git a/src/Lib/Script/CRTPLuaScriptObject.hh b/src/Lib/Script/CRTPLuaScriptObject.hh index 4e0e86f5d9cc9845aad7c1602e98d560e465c340..f94d27d78afb450cbbf7271b3b6489a008db2745 100644 --- a/src/Lib/Script/CRTPLuaScriptObject.hh +++ b/src/Lib/Script/CRTPLuaScriptObject.hh @@ -48,7 +48,7 @@ getJobIteratorTypeFromString(const std::string_view it) noexcept // CRTP to expose objects to Lua template <class Object> class CRTPLuaScriptObject { protected: - static void _Noreturn luaGlobalError(lua_State *const L, const std::string &str) noexcept + static void __attribute__((__noreturn__)) luaGlobalError(lua_State *const L, const std::string &str) noexcept { const auto *const context = LuaContext::getContext(L); lua_pushfstring(L, "%s:0:%s", context->getCurrentLuaFile().c_str(), str.c_str());