1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

core: disable -Warray-bounds for XFA users

This commit is contained in:
Kaspar Schleiser 2020-09-10 13:22:44 +02:00
parent d8d34e033c
commit bdd59ae7f2

View File

@ -24,6 +24,14 @@
#ifndef XFA_H
#define XFA_H
/*
* Unfortunately, current gcc trips over accessing XFA's because of their
* zero-size start/end array that are used of symbol markers, with an "array
* index out of bounds" warning. So until a solution for that is found, we
* need to disable array bounds checks for files using XFAs.
*/
_Pragma("GCC diagnostic ignored \"-Warray-bounds\"")
/**
* @brief helper macro for other XFA_* macros
*