c2: fix error on older gcc

__auto_type used to take on the `const` qualifier on older gcc, when the
initializer is const.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2024-02-21 12:19:03 +00:00
parent ef722e5796
commit 2be58f173f
No known key found for this signature in database
GPG Key ID: D3A4405BE6CC17F4
1 changed files with 1 additions and 1 deletions

View File

@ -1748,7 +1748,7 @@ c2_match_once_leaf(struct c2_state *state, const struct managed_win *w, const c2
log_verbose("Matching window %#010x (%s) against condition %s", wid, w->name,
c2_condition_to_str2((c2_ptr_t){.l = (c2_l_t *)leaf, .isbranch = false}));
auto pattern_type = leaf->ptntype;
unsigned int pattern_type = leaf->ptntype;
if (pattern_type == C2_L_PTUNDEFINED) {
auto values = &w->c2_state.values[leaf->target_id];
if (values->type == C2_PROPERTY_TYPE_STRING) {