Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```
- Compiling: quantum/keymap_introspection.c In file included from quantum/color.h:21,
- from quantum/rgblight/rgblight_drivers.h:7,
- from quantum/rgblight/rgblight.h:169,
- from quantum/quantum.h:32,
- from ./.build/obj_crkbd_rev1_jamie_blok/src/default_keyboard.h:27,
- from ./keyboards/crkbd/keymaps/jamie/keymap.c:1,
- from quantum/keymap_introspection.c:5:
- quantum/keymap_introspection.c: In function 'key_override_count_raw':
- quantum/util.h:47:79: error: invalid application of 'sizeof' to incomplete type 'const key_override_t *[]' {aka 'const struct key_override_t *[]'}
- 47 | # define ARRAY_SIZE(array) (__builtin_choose_expr(IS_ARRAY((array)), sizeof((array)) / sizeof((array)[0]), (void)0))
- | ^
- quantum/keymap_introspection.c:153:12: note: in expansion of macro 'ARRAY_SIZE'
- 153 | return ARRAY_SIZE(key_overrides);
- | ^~~~~~~~~~
- quantum/keymap_introspection.c: At top level:
- quantum/util.h:47:79: error: invalid application of 'sizeof' to incomplete type 'const key_override_t *[]' {aka 'const struct key_override_t *[]'}
- 47 | # define ARRAY_SIZE(array) (__builtin_choose_expr(IS_ARRAY((array)), sizeof((array)) / sizeof((array)[0]), (void)0))
- | ^
- quantum/keymap_introspection.c:160:16: note: in expansion of macro 'ARRAY_SIZE'
- 160 | _Static_assert(ARRAY_SIZE(key_overrides) <= (QK_KB), "Number of key overrides is abnormally high. Are you using SAFE_RANGE in an enum for key overrides?");
- | ^~~~~~~~~~
- quantum/util.h:47:31: error: expression in static assertion is not an integer
- 47 | # define ARRAY_SIZE(array) (__builtin_choose_expr(IS_ARRAY((array)), sizeof((array)) / sizeof((array)[0]), (void)0))
- | ^
- quantum/keymap_introspection.c:160:16: note: in expansion of macro 'ARRAY_SIZE'
- 160 | _Static_assert(ARRAY_SIZE(key_overrides) <= (QK_KB), "Number of key overrides is abnormally high. Are you using SAFE_RANGE in an enum for key overrides?");
- | ^~~~~~~~~~
- quantum/keymap_introspection.c: In function 'key_override_count_raw':
- quantum/keymap_introspection.c:154:1: error: control reaches end of non-void function [-Werror=return-type]
- 154 | }
- | ^
- cc1: all warnings being treated as errors
- [ERRORS]
- |
- |
- |
- make: *** [builddefs/common_rules.mk:373: .build/obj_crkbd_rev1_jamie_blok/quantum/keymap_introspection.o] Error 1
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement