From 2be58f173fccf2c02e108c547662595e542468dc Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Wed, 21 Feb 2024 12:19:03 +0000 Subject: [PATCH] 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 --- src/c2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c2.c b/src/c2.c index b37230bd..373cb1aa 100644 --- a/src/c2.c +++ b/src/c2.c @@ -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) {