Skip to contentSkip to conversation

audio/mixeng_template.h: fix inline declaration

PATCH Applied Alex Bligh 3 participants 4 messages Aug 6, 2013 – Oct 26, 2013

lore
Share & tools
lore

Alex Bligh

author
#0 lore raw

PATCH 1/1 audio/mixeng_template.h: fix inline declaration

Fix error: ‘inline’ is not at beginning of declaration [-Werror=old-style-declaration]

---
 audio/mixeng_template.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
audio/mixeng_template.h +2 -2
index 30849a6..77cc89b 100644
@@ -35,7 +35,7 @@
 #define IN_T glue (glue (ITYPE, BSIZE), _t)
 
 #ifdef FLOAT_MIXENG
-static mixeng_real inline glue (conv_, ET) (IN_T v)
+static inline mixeng_real glue (conv_, ET) (IN_T v)
 {
     IN_T nv = ENDIAN_CONVERT (v);
 
@@ -54,7 +54,7 @@ static mixeng_real inline glue (conv_, ET) (IN_T v)
 #endif
 }
 
-static IN_T inline glue (clip_, ET) (mixeng_real v)
+static inline IN_T glue (clip_, ET) (mixeng_real v)
 {
     if (v >= 0.5) {
         return IN_MAX;
Signature · 1 line
1.7.9.5
author
#1 lore raw

ping

I think this is should go to qemu-trivial

Quoted 34 lines · --On 6 August 2013 19:45:13 +0100 Alex Bligh <[email protected]> wrote:

Fix error: ‘inline’ is not at beginning of declaration [-Werror=old-style-declaration]

---
 audio/mixeng_template.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
audio/mixeng_template.h +2 -3
index 30849a6..77cc89b 100644
@@ -35,7 +35,7 @@
 #define IN_T glue (glue (ITYPE, BSIZE), _t)
 
 #ifdef FLOAT_MIXENG
-static mixeng_real inline glue (conv_, ET) (IN_T v)
+static inline mixeng_real glue (conv_, ET) (IN_T v)
 {
     IN_T nv = ENDIAN_CONVERT (v);
 
@@ -54,7 +54,7 @@ static mixeng_real inline glue (conv_, ET) (IN_T v)
 #endif
 }
 
-static IN_T inline glue (clip_, ET) (mixeng_real v)
+static inline IN_T glue (clip_, ET) (mixeng_real v)
 {
     if (v >= 0.5) {
         return IN_MAX;
--

1.7.9.5

Signature · 1 line
Alex Bligh
#2 lore raw

22.10.2013 13:26, Alex Bligh пишет:

Quoted 8 lines

ping

I think this is should go to qemu-trivial

Quoted 2 lines · --On 6 August 2013 19:45:13 +0100 Alex Bligh <[email protected]> wrote:

Fix error: ‘inline’ is not at beginning of declaration [-Werror=old-style-declaration]

Thanks, applied to the trivial patches queue.

/mjt