diff --git a/src/frontends/lean/decl_cmds.cpp b/src/frontends/lean/decl_cmds.cpp index e160523ea..b0bf613a8 100644 --- a/src/frontends/lean/decl_cmds.cpp +++ b/src/frontends/lean/decl_cmds.cpp @@ -341,7 +341,7 @@ environment definition_cmd_core(parser & p, bool is_theorem, bool is_opaque, boo if (modifiers.m_is_instance) { bool persistent = true; if (modifiers.m_priority) { - #if defined(__GNUC__) + #if defined(__GNUC__) && !defined(__CLANG__) #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" #endif env = add_instance(env, real_n, *modifiers.m_priority, persistent);