summaryrefslogtreecommitdiff
path: root/sbc
diff options
context:
space:
mode:
authorSiarhei Siamashka <siarhei.siamashka@gmail.com>2012-02-24 14:13:16 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-02-24 18:47:52 +0200
commit03bb9d3426af326642cb4ff280a793cd69a0d844 (patch)
tree5213a643c6f0ec3dfa8b900c9cd57d87752a4db4 /sbc
parent2b9fc1b2d9cce2f2b635813b7787b40fa334132b (diff)
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
Diffstat (limited to 'sbc')
-rw-r--r--sbc/sbc_primitives.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbc/sbc_primitives.h b/sbc/sbc_primitives.h
index 3fec8d5b..17ad4f74 100644
--- a/sbc/sbc_primitives.h
+++ b/sbc/sbc_primitives.h
@@ -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