Merge branch 'clang-tidy' into 'master'

add .clang-tidy file

See merge request wlroots/wlroots!5288
This commit is contained in:
Simon Zeni 2026-03-21 19:11:18 -04:00
commit ff531ca397
6 changed files with 79 additions and 4 deletions

View file

@ -180,8 +180,7 @@ static void color_repr_handle_set_chroma_location(struct wl_client *client,
}
uint32_t version = wl_resource_get_version(resource);
if (!wp_color_representation_surface_v1_chroma_location_is_valid(
version, chroma_location)) {
if (!wp_color_representation_surface_v1_chroma_location_is_valid(chroma_location, version)) {
wl_resource_post_error(resource, WP_COLOR_REPRESENTATION_SURFACE_V1_ERROR_CHROMA_LOCATION,
"Chroma location is not a valid enum value");
return;