mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
helpful errors custom-attrs
This commit is contained in:
@@ -3507,6 +3507,7 @@ gb_internal void check_decl_attributes(CheckerContext *c, Array<Ast *> const &at
|
|||||||
if (!proc(c, elem, name, value, ac)) {
|
if (!proc(c, elem, name, value, ac)) {
|
||||||
if (!build_context.ignore_unknown_attributes) {
|
if (!build_context.ignore_unknown_attributes) {
|
||||||
error(elem, "Unknown attribute element name '%.*s'", LIT(name));
|
error(elem, "Unknown attribute element name '%.*s'", LIT(name));
|
||||||
|
error_line("\tDid you forget to use build flag '-ignore-unknown-attributes'?\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user