sbc: fix "always_inline function might not be inlinable" warning
PATCH 1/1 sbc: fix "always_inline function might not be inlinable" warning
"__attribute__((always_inline))" does not replace "inline" and they still need to be used together. This fixes "always_inline function might not be inlinable [-Wattributes]" warning in gcc 4.7
--- sbc/sbc_primitives.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
sbc/sbc_primitives.h +1 -1
@@ -31,7 +31,7 @@#define SBC_X_BUFFER_SIZE 328#ifdef __GNUC__ -#define SBC_ALWAYS_INLINE __attribute__((always_inline)) +#define SBC_ALWAYS_INLINE inline __attribute__((always_inline))#else #define SBC_ALWAYS_INLINE inline#endif
Signature · 1 line
1.7.3.4
Johan Hedberg
AppliedHi Siarhei,
Quoted 6 lines · Siarhei Siamashka
"__attribute__((always_inline))" does not replace "inline" and they still need to be used together. This fixes "
always_inlinefunction might not be inlinable [-Wattributes]" warning in gcc 4.7--- sbc/sbc_primitives.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Applied. Thanks.
Johan