fix(frontends/lean/elaborator): warning message
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
fbc4a7af3b
commit
249c878597
1 changed files with 4 additions and 2 deletions
|
@ -1279,12 +1279,14 @@ public:
|
||||||
|
|
||||||
void display_flyinfo(substitution const & s) {
|
void display_flyinfo(substitution const & s) {
|
||||||
instantiate_flyinfo(s);
|
instantiate_flyinfo(s);
|
||||||
optional<flyinfo_data> prev;
|
flyinfo_data prev;
|
||||||
|
bool first = true;
|
||||||
for (auto const & p : m_flyinfo_data) {
|
for (auto const & p : m_flyinfo_data) {
|
||||||
if (!prev || p.first != prev->first) {
|
if (first || p.first != prev.first) {
|
||||||
display_flyinfo_data(p);
|
display_flyinfo_data(p);
|
||||||
prev = p;
|
prev = p;
|
||||||
}
|
}
|
||||||
|
first = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue