Skip to contentSkip to conversation

sbc: fix "always_inline function might not be inlinable" warning

PATCH Applied Siarhei Siamashka 2 participants 2 messages Feb 24, 2012 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

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
index 3fec8d5..17ad4f7 100644
@@ -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
#1 lore raw

Hi Siarhei,

Quoted 6 lines · Siarhei Siamashka

"__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(-)

Applied. Thanks.

Johan