aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/process_keycode/process_combo.c
diff options
context:
space:
mode:
authorGravatar Shihpin Tseng <deftsp@gmail.com>2017-10-28 17:57:36 +0800
committerGravatar Jack Humbert <jack.humb@gmail.com>2017-10-29 20:05:26 -0400
commit750f8ec94e72a289881bff9f900fbe4ef97f688e (patch)
treed260f3a130e8ecb00d59b01b57a9e82fefb9c982 /quantum/process_keycode/process_combo.c
parent49c32021dbb08dd0934b89216b2068749f3d679c (diff)
downloadqmk_firmware-750f8ec94e72a289881bff9f900fbe4ef97f688e.tar.gz
Fix process_combo.c compile warning
Diffstat (limited to 'quantum/process_keycode/process_combo.c')
-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 58d45add2..1addd72e5 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) {