diff options
author | Thomas Weißschuh <thomas@t-8ch.de> | 2021-07-06 01:24:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-06 00:24:48 +0100 |
commit | a535d24ecfd465124cdb255e53b5cc301cbda6d9 (patch) | |
tree | a7049fc8f613074b9e94673a987133365304d302 /keyboards/waldo/rules.mk | |
parent | 82137e14f24a12dbf16746b602d4912582b93b58 (diff) |
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
Diffstat (limited to 'keyboards/waldo/rules.mk')
0 files changed, 0 insertions, 0 deletions