1
0
Fork 0
forked from forks/qmk_firmware
qmk_firmware/tmk_core/common/chibios
Thomas Weißschuh a535d24ecf
core: chibios: bootloader: use integer pointers as volatile (#13450)
This prevents gcc from incorrectly trying to validate array bounds.

```
tmk_core/common/chibios/bootloader.c: error: '__builtin_memcpy' offset [0, 21] is out of the bounds [0, 0] [-Werror=array-bounds]
  107 |     __builtin_memcpy((void *) VBAT, (const void *)sys_reset_to_loader_magic, sizeof(sys_reset_to_loader_magic));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99578#c16
Fixes #12925
2021-07-06 00:24:48 +01:00
..
_timer.h Avoid 8-bit timer overflows in debounce algorithms (#12240) 2021-06-09 17:23:21 +10:00
_wait.h 2021 May 29 Breaking Changes Update (#13034) 2021-05-29 14:38:50 -07:00
atomic_util.h Split gpio and atomic to platform (#11792) 2021-02-14 11:51:06 +11:00
bootloader.c core: chibios: bootloader: use integer pointers as volatile (#13450) 2021-07-06 00:24:48 +01:00
chibios_config.h Allow configuration of USB_VBUS_PIN on chibios (#13342) 2021-06-26 11:48:48 +01:00
eeprom_stm32.c Add customisable EEPROM driver selection (#7274) 2020-01-24 12:45:58 +11:00
eeprom_stm32.h Change include guards in tmk_core/ and drivers/ to pragma once (#11240) 2020-12-26 15:56:11 +11:00
eeprom_teensy.c Fix for gcc10 teensy_lc eeprom build warning (#12587) 2021-04-20 10:51:55 -07:00
flash_stm32.c Added EEPROM emulation for STM32F042x6 series processors (#10685) 2020-10-22 21:05:01 +11:00
flash_stm32.h Change include guards in tmk_core/ and drivers/ to pragma once (#11240) 2020-12-26 15:56:11 +11:00
gpio.h Add readPort() and some API to 'tmk_core/common/*/gpio.h' (#12754) 2021-06-07 18:23:21 +09:00
pin_defs.h 2021 May 29 Breaking Changes Update (#13034) 2021-05-29 14:38:50 -07:00
sleep_led.c 2021 May 29 Breaking Changes Update (#13034) 2021-05-29 14:38:50 -07:00
suspend.c 2021 May 29 Breaking Changes Update (#13034) 2021-05-29 14:38:50 -07:00
syscall-fallbacks.c Fixup declaration for _kill, add other missing syscalls, populate errno. (#11608) 2021-01-19 14:23:03 +00:00
timer.c Normalise include statements in core code (#11153) 2020-12-11 13:45:24 +11:00
wait.c 2021 May 29 Breaking Changes Update (#13034) 2021-05-29 14:38:50 -07:00