Commit c3bd2094 authored by Shlomi Vaknin's avatar Shlomi Vaknin Committed by Kumar Gala
Browse files

DSP: fix compiler warning on inline attribute



When trying to compile the distance test on zephyr,
The compiler reports: "warning: 'inline' attribute
directive ignored". To fix this, we use `static inline`
explicitly instead on using the `attribute` flag.

In addition, to force inline we use the attribute
`always_inline`.

Signed-off-by: default avatarShlomi Vaknin <shlomi.39sd@gmail.com>
parent 473b6648
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -381,8 +381,8 @@ extern "C"
#elif defined (__GNUC_PYTHON__)
#include <stdint.h>
#define  __ALIGNED(x) __attribute__((aligned(x)))
#define __STATIC_FORCEINLINE static __attribute__((inline))
#define __STATIC_INLINE static __attribute__((inline))
#define __STATIC_FORCEINLINE static inline __attribute__((always_inline))
#define __STATIC_INLINE static inline
#pragma GCC diagnostic ignored "-Wunused-function"
#pragma GCC diagnostic ignored "-Wattributes"