summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--quantum/process_keycode/process_combo.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/quantum/process_keycode/process_combo.c b/quantum/process_keycode/process_combo.c
index 58d45add22..1addd72e5a 100644
--- a/quantum/process_keycode/process_combo.c
+++ b/quantum/process_keycode/process_combo.c
@@ -127,8 +127,12 @@ bool process_combo(uint16_t keycode, keyrecord_t *record)
void matrix_scan_combo(void)
{
for (int i = 0; i < COMBO_COUNT; ++i) {
+ // Do not treat the (weak) key_combos too strict.
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Warray-bounds"
combo_t *combo = &key_combos[i];
- if (combo->timer &&
+ #pragma GCC diagnostic pop
+ if (combo->timer &&
combo->timer != COMBO_TIMER_ELAPSED &&
timer_elapsed(combo->timer) > COMBO_TERM) {