mirror of https://github.com/yshui/picom.git
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:
parent
ef722e5796
commit
2be58f173f
2
src/c2.c
2
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) {
|
||||
|
|
Loading…
Reference in New Issue