From 1ed28678fa2bf007be5990ca0aaced944d6d4a77 Mon Sep 17 00:00:00 2001 From: Elliu <goyard.louis@gmail.com> Date: Fri, 20 Aug 2021 16:27:57 +0200 Subject: [PATCH] Fix _Noreturn on gcc --- src/Lib/Script/CRTPLuaScriptObject.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Lib/Script/CRTPLuaScriptObject.hh b/src/Lib/Script/CRTPLuaScriptObject.hh index 4e0e86f5..f94d27d7 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()); -- GitLab