From 6630ed81653f193b2b09f77603107a800141a241 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Mon, 29 Sep 2014 12:33:15 -0700 Subject: [PATCH] fix(frontends/lean/decl_cmds): warning message when compiling with clang++ --- src/frontends/lean/decl_cmds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);