mirror of https://github.com/thesofproject/sof.git
compile: use __attribute__((fallthrough)) with GCC
Fix compiler warning by using the "fallthrough" attribute with GCC as well. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
parent
5a42c023d2
commit
ceabf319e1
|
@ -17,7 +17,7 @@
|
|||
|
||||
#define __section(x) __attribute__((section(x)))
|
||||
|
||||
#ifdef __clang__
|
||||
#if defined(__clang__) || !defined(__XCC__)
|
||||
|
||||
#define COMPILER_FALLTHROUGH __attribute__((fallthrough))
|
||||
|
||||
|
|
Loading…
Reference in New Issue