summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiarhei Siamashka <siarhei.siamashka@gmail.com>2012-02-24 14:13:16 +0200
committerMarcel Holtmann <marcel@holtmann.org>2012-07-29 19:48:30 -0700
commit758ced4c902693fd74147c2e8cf052a2316fa757 (patch)
tree94264976003918f370e44ed497c9e35d5f0c9f27
parentfeb1bd576eec00fd1f5f197851be595036c7ff9b (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
-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 3fec8d5..17ad4f7 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