diff options
author | Shihpin Tseng <deftsp@gmail.com> | 2017-10-28 17:57:36 +0800 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2017-10-29 20:05:26 -0400 |
commit | 750f8ec94e72a289881bff9f900fbe4ef97f688e (patch) | |
tree | d260f3a130e8ecb00d59b01b57a9e82fefb9c982 /quantum | |
parent | 49c32021dbb08dd0934b89216b2068749f3d679c (diff) |
Fix process_combo.c compile warning
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/process_keycode/process_combo.c | 6 |
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) { |