mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04: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);
|
||||
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;
|
||||
message->since = version;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue