Advertisement
jamesonBradfield

corne error

Nov 8th, 2024
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.66 KB | None | 0 0
  1. ```
  2. Compiling: quantum/keymap_introspection.c                                                          In file included from quantum/color.h:21,
  3.                  from quantum/rgblight/rgblight_drivers.h:7,
  4.                  from quantum/rgblight/rgblight.h:169,
  5.                  from quantum/quantum.h:32,
  6.                  from ./.build/obj_crkbd_rev1_jamie_blok/src/default_keyboard.h:27,
  7.                  from ./keyboards/crkbd/keymaps/jamie/keymap.c:1,
  8.                  from quantum/keymap_introspection.c:5:
  9. quantum/keymap_introspection.c: In function 'key_override_count_raw':
  10. quantum/util.h:47:79: error: invalid application of 'sizeof' to incomplete type 'const key_override_t *[]' {aka 'const struct key_override_t *[]'}
  11.    47 | #    define ARRAY_SIZE(array) (__builtin_choose_expr(IS_ARRAY((array)), sizeof((array)) / sizeof((array)[0]), (void)0))
  12.       |                                                                               ^
  13. quantum/keymap_introspection.c:153:12: note: in expansion of macro 'ARRAY_SIZE'
  14.   153 |     return ARRAY_SIZE(key_overrides);
  15.       |            ^~~~~~~~~~
  16. quantum/keymap_introspection.c: At top level:
  17. quantum/util.h:47:79: error: invalid application of 'sizeof' to incomplete type 'const key_override_t *[]' {aka 'const struct key_override_t *[]'}
  18.    47 | #    define ARRAY_SIZE(array) (__builtin_choose_expr(IS_ARRAY((array)), sizeof((array)) / sizeof((array)[0]), (void)0))
  19.       |                                                                               ^
  20. quantum/keymap_introspection.c:160:16: note: in expansion of macro 'ARRAY_SIZE'
  21.   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?");
  22.       |                ^~~~~~~~~~
  23. quantum/util.h:47:31: error: expression in static assertion is not an integer
  24.    47 | #    define ARRAY_SIZE(array) (__builtin_choose_expr(IS_ARRAY((array)), sizeof((array)) / sizeof((array)[0]), (void)0))
  25.       |                               ^
  26. quantum/keymap_introspection.c:160:16: note: in expansion of macro 'ARRAY_SIZE'
  27.   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?");
  28.       |                ^~~~~~~~~~
  29. quantum/keymap_introspection.c: In function 'key_override_count_raw':
  30. quantum/keymap_introspection.c:154:1: error: control reaches end of non-void function [-Werror=return-type]
  31.   154 | }
  32.       | ^
  33. cc1: all warnings being treated as errors
  34.  [ERRORS]
  35.  |
  36.  |
  37.  |
  38. make: *** [builddefs/common_rules.mk:373: .build/obj_crkbd_rev1_jamie_blok/quantum/keymap_introspection.o] Error 1
  39. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement