Fix process_combo.c compile warning

This commit is contained in:
Shihpin Tseng 2017-10-28 17:57:36 +08:00 committed by Jack Humbert
parent 49c32021db
commit 750f8ec94e

View file

@ -127,7 +127,11 @@ 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];
#pragma GCC diagnostic pop
if (combo->timer &&
combo->timer != COMBO_TIMER_ELAPSED &&
timer_elapsed(combo->timer) > COMBO_TERM) {