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

core/xfa: add comments explaining the pragmas

This commit is contained in:
Kaspar Schleiser 2020-12-01 17:02:10 +01:00
parent 50dc68bd21
commit e827f0bdf1

View File

@ -52,6 +52,11 @@ _Pragma("GCC diagnostic ignored \"-Warray-bounds\"")
* This macro defines the symbols necessary to use XFA_START() and XFA_END().
* It needs to be part of one single compilation unit.
*
* The pragmas prevent these errors:
*
* error: ISO C forbids empty initializer braces
* error: ISO C forbids zero-size array xfatest_const_end
*
* @param[in] type name of the cross-file array
* @param[in] name name of the cross-file array
*/
@ -69,6 +74,11 @@ _Pragma("GCC diagnostic ignored \"-Warray-bounds\"")
* This macro defines the symbols necessary to use XFA_START() and XFA_END().
* It needs to be part of one single compilation unit.
*
* The pragmas prevent these errors:
*
* error: ISO C forbids empty initializer braces
* error: ISO C forbids zero-size array xfatest_end
*
* @param[in] type name of the cross-file array
* @param[in] name name of the cross-file array
*/