diff options
author | dbroqua <dbroqua@mousur.org> | 2017-04-29 15:04:01 +0200 |
---|---|---|
committer | dbroqua <dbroqua@mousur.org> | 2017-04-29 15:04:01 +0200 |
commit | 7180e195e84aabf252fcadb2852644417ac1d663 (patch) | |
tree | 2a314ac51bf1399c09a394e76ba81a56c072e7d6 /quantum/keymap_common.c | |
parent | 838aae164568a1092ae269267f8d8772d3aba781 (diff) | |
parent | 584b804ee33d53102fef3b8cdd045bca4c47bf26 (diff) |
Merge branch 'master' of https://github.com/Dbroqua/qmk_firmware
Diffstat (limited to 'quantum/keymap_common.c')
-rw-r--r-- | quantum/keymap_common.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/quantum/keymap_common.c b/quantum/keymap_common.c index 6cf4f031ff..9dafc8b516 100644 --- a/quantum/keymap_common.c +++ b/quantum/keymap_common.c @@ -179,5 +179,12 @@ uint16_t keymap_key_to_keycode(uint8_t layer, keypos_t key) __attribute__ ((weak)) uint16_t keymap_function_id_to_action( uint16_t function_id ) { + // The compiler sees the empty (weak) fn_actions and generates a warning + // This function should not be called in that case, so the warning is too strict + // If this function is called however, the keymap should have overridden fn_actions, and then the compile + // is comparing against the wrong array + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Warray-bounds" return pgm_read_word(&fn_actions[function_id]); + #pragma GCC diagnostic pop } |