Commit 8b2ba84b authored by Simon Ser's avatar Simon Ser Committed by Pekka Paalanen

scanner: allow referencing foreign enums

It's already possible to reference foreign interfaces, so it
should also be possible to reference foreign enums.
Signed-off-by: Simon Ser's avatarSimon Ser <>
Reviewed-by: default avatarSilvan Jegen <>
Reviewed-by: Pekka Paalanen's avatarPekka Paalanen <>
parent a0608223
Pipeline #731 passed with stage
in 1 minute and 52 seconds
......@@ -894,14 +894,9 @@ verify_arguments(struct parse_context *ctx,
e = find_enumeration(ctx->protocol, interface,
if (e == NULL)
"could not find enumeration %s",
switch (a->type) {
case INT:
if (e->bitfield)
if (e && e->bitfield)
"bitfield-style enum must only be referenced by uint");
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