audio/mixeng_template.h: fix inline declaration
PATCH 1/1 audio/mixeng_template.h: fix inline declaration
Fix error: ‘inline’ is not at beginning of declaration [-Werror=old-style-declaration]
Signed-off-by Alex Bligh <[email protected]>
--- audio/mixeng_template.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
audio/mixeng_template.h +2 -2
@@ -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
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]
Signed-off-by Alex Bligh <[email protected]>--- audio/mixeng_template.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)audio/mixeng_template.h +2
-3@@ -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
Michael Tokarev
Applied22.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
Quoted 3 lines · Alex Bligh
Fix error: ‘inline’ is not at beginning of declaration [-Werror=old-style-declaration]
Signed-off-by Alex Bligh <[email protected]>
Reviewed-by Peter Maydell <[email protected]>
-- PMM