mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-23 11:26:40 +00:00
Allow for @indent for attributes that don't require any parameters; Add -ignore-unknown-attributes
This commit is contained in:
@@ -2150,7 +2150,9 @@ void check_decl_attributes(CheckerContext *c, Array<Ast *> const &attributes, De
|
||||
}
|
||||
|
||||
if (!proc(c, elem, name, value, ac)) {
|
||||
error(elem, "Unknown attribute element name '%.*s'", LIT(name));
|
||||
if (!build_context.ignore_unknown_attributes) {
|
||||
error(elem, "Unknown attribute element name '%.*s'", LIT(name));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user