fix(frontends/lean/decl_cmds): warning message when compiling with clang++

This commit is contained in:
Leonardo de Moura 2014-09-29 12:33:15 -07:00
parent f7ab2f7903
commit 6630ed8165

View file

@ -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);