aboutsummaryrefslogtreecommitdiffstats
path: root/module/lua/ldo.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/lua/ldo.c')
-rw-r--r--module/lua/ldo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/lua/ldo.c b/module/lua/ldo.c
index e2a3d0279..291bca044 100644
--- a/module/lua/ldo.c
+++ b/module/lua/ldo.c
@@ -197,7 +197,8 @@ l_noret luaD_throw (lua_State *L, int errcode) {
}
}
-#if defined(HAVE_INFINITE_RECURSION)
+#if defined(__GNUC__) && !defined(__clang__) && \
+ defined(HAVE_INFINITE_RECURSION)
#pragma GCC diagnostic pop
#endif