mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-10 10:39:09 +00:00
Fix process_combo.c compile warning
This commit is contained in:
parent
49c32021db
commit
750f8ec94e
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue