mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-03 01:41:30 -05:00
scanner: fail if since versions are not increasing
They will result in invalid code being generated. Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
This commit is contained in:
parent
b39e45c48d
commit
b5d84ea6fe
1 changed files with 1 additions and 1 deletions
|
|
@ -826,7 +826,7 @@ start_element(void *data, const char *element_name, const char **atts)
|
||||||
|
|
||||||
version = version_from_since(ctx, since);
|
version = version_from_since(ctx, since);
|
||||||
if (version < ctx->interface->since)
|
if (version < ctx->interface->since)
|
||||||
warn(&ctx->loc, "since version not increasing\n");
|
fail(&ctx->loc, "since version not increasing\n");
|
||||||
ctx->interface->since = version;
|
ctx->interface->since = version;
|
||||||
message->since = version;
|
message->since = version;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue