compiler: fix fallthrough attribute

parent d202c500
...@@ -19,7 +19,9 @@ ...@@ -19,7 +19,9 @@
#endif #endif
#endif #endif
#ifndef __fallthrough #if __GNUC__ >= 7
#define __fallthrough __attribute__((__fallthrough__))
#else
#define __fallthrough /* fall through */ #define __fallthrough /* fall through */
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment