From f23c2bad9a588f52dbafea6d3f27bdd2f91db62e Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Tue, 30 Dec 2014 12:53:47 +0200 Subject: Avoid mixing declarations and statements in C89 source files Prior to adding the UNUSED macro, this file built just fine in C89 mode. Move the macro call to after the local variable declarations, to avoid mixing declarations and statements (which isn't allowed in C89 mode). Change-Id: I09299a07103d47298a0086f7c639d2be696b19ce --- media/libstagefright/codecs/aacenc/basic_op/oper_32b.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'media/libstagefright/codecs') diff --git a/media/libstagefright/codecs/aacenc/basic_op/oper_32b.c b/media/libstagefright/codecs/aacenc/basic_op/oper_32b.c index d1fe833..4fd16a1 100644 --- a/media/libstagefright/codecs/aacenc/basic_op/oper_32b.c +++ b/media/libstagefright/codecs/aacenc/basic_op/oper_32b.c @@ -245,10 +245,9 @@ Word16 iLog4(Word32 value) Word32 rsqrt(Word32 value, /*!< Operand to square root (0.0 ... 1) */ Word32 accuracy) /*!< Number of valid bits that will be calculated */ { - UNUSED(accuracy); - Word32 root = 0; Word32 scale; + UNUSED(accuracy); if(value < 0) return 0; -- cgit v1.1