1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 04:15:44 +03:00

Support for GCC10 and some compilation tuning

This commit is contained in:
Štěpán Dalecký 2021-10-19 19:45:49 +02:00
parent 81a3c53b1c
commit 4cf54f9ddc
17 changed files with 27 additions and 29 deletions

View file

@ -114,7 +114,7 @@ void * memcpy_fn ( void * destination, const void * source, size_t num ) asm("me
#endif
#if __GNUC__ > 6
#define FALLTHROUGH __attribute__ ((fallthrough))
#define FALLTHROUGH ;__attribute__ ((fallthrough))
#else
#define FALLTHROUGH do {} while(0)
#endif