Commit e78e72ad authored by Jeremy Hylton's avatar Jeremy Hylton

Another bug fix for recent import * warning (caught by Thomas Wouters)

Only return if symtable_warn() returns -1, indicating that the warning
was turned into an error.
parent 61489f47
......@@ -5295,8 +5295,8 @@ symtable_import(struct symtable *st, node *n)
}
if (TYPE(CHILD(n, 3)) == STAR) {
if (st->st_cur->ste_type != TYPE_MODULE) {
symtable_warn(st,
"import * only allowed at module level");
if (symtable_warn(st,
"import * only allowed at module level") < 0)
return;
}
st->st_cur->ste_optimized |= OPT_IMPORT_STAR;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment