Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for gcc10 teensy_lc eeprom build warning #12587

Merged
merged 1 commit into from
Apr 20, 2021

Conversation

zvecr
Copy link
Member

@zvecr zvecr commented Apr 14, 2021

Description

make clean handwired/onekey/teensy_lc:default
QMK Firmware 0.12.34
Deleting .build/ ... done.
Making handwired/onekey/teensy_lc with keymap default

arm-none-eabi-gcc (Arch Repository) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiling: keyboards/handwired/onekey/keymaps/default/keymap.c                                     Compiling: quantum/send_string.c                                                                   Compiling: keyboards/handwired/onekey/onekey.c                                                     Compiling: quantum/quantum.c                                                                       Compiling: quantum/bitwise.c                                                                       Compiling: quantum/keymap_common.c                                                                 Compiling: quantum/led.c                                                                           Compiling: quantum/keycode_config.c                                                                 [OK]
 [OK]
 [OK]
Compiling: quantum/matrix_common.c                                                                 Compiling: quantum/matrix.c                                                                         [OK]
Compiling: quantum/debounce/sym_defer_g.c                                                           [OK]
Compiling: quantum/mousekey.c                                                                      Compiling: tmk_core/common/chibios/eeprom_teensy.c                                                  [OK]
Compiling: quantum/process_keycode/process_space_cadet.c                                            [OK]
 [OK]
tmk_core/common/chibios/eeprom_teensy.c: In function 'eeprom_initialize':
tmk_core/common/chibios/eeprom_teensy.c:367:29: error: array subscript 0 is outside array bounds of 'uint32_t[1]' {aka 'long unsigned int[1]'} [-Werror=array-bounds]
  367 |     flashend = (uint32_t)(q - 1);
      |                          ~~~^~~~
tmk_core/common/chibios/eeprom_teensy.c:351:17: note: while referencing '__eeprom_workarea_end__'
  351 | extern uint32_t __eeprom_workarea_end__;
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
Compiling: quantum/process_keycode/process_magic.c 

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout/userspace (addition or update)
  • Documentation

Issues Fixed or Closed by This PR

Checklist

  • My code follows the code style of this project: C, Python
  • I have read the PR Checklist document and have made the appropriate changes.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

@github-actions github-actions bot added the core label Apr 14, 2021
@zvecr zvecr changed the title Potential fix for 'array subscript outside array bounds' build warning Potential fix for gcc10 teensy_lc eeprom build warning Apr 14, 2021
@zvecr zvecr added the bug label Apr 14, 2021
@zvecr zvecr marked this pull request as ready for review April 16, 2021 17:08
@zvecr zvecr changed the title Potential fix for gcc10 teensy_lc eeprom build warning Fix for gcc10 teensy_lc eeprom build warning Apr 16, 2021
@drashna drashna requested a review from a team April 20, 2021 02:01
@drashna drashna merged commit 1cecd59 into qmk:master Apr 20, 2021
makenova pushed a commit to makenova/qmk_firmware that referenced this pull request Apr 26, 2021
rizo pushed a commit to rizo/qmk_firmware that referenced this pull request May 10, 2021
toddyamakawa pushed a commit to toddyamakawa/qmk_firmware that referenced this pull request May 19, 2021
HokieGeek pushed a commit to HokieGeek/qmk_firmware that referenced this pull request Jul 11, 2021
BorisTestov pushed a commit to BorisTestov/qmk_firmware that referenced this pull request May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants