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

Enabled switch fallthrough checking by compiler

This commit is contained in:
Martin Budden 2017-11-24 07:08:44 +00:00
parent 9dda8c4f18
commit 671382234a
20 changed files with 100 additions and 58 deletions

View file

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