From: Steve Underwood Date: Wed, 6 Feb 2013 09:07:29 +0000 (+0800) Subject: Eliminated a couple of unused variable warnings in the Broadvoice codec. X-Git-Tag: v1.3.13~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b46a5511ee632cc5325099fc98dc01e4118fedc;p=thirdparty%2Ffreeswitch.git Eliminated a couple of unused variable warnings in the Broadvoice codec. --- diff --git a/libs/broadvoice/src/floating/bv16/bv16encoder.c b/libs/broadvoice/src/floating/bv16/bv16encoder.c index 2b9b5372ee..2eccf7124c 100644 --- a/libs/broadvoice/src/floating/bv16/bv16encoder.c +++ b/libs/broadvoice/src/floating/bv16/bv16encoder.c @@ -103,7 +103,6 @@ BV_DECLARE(int) bv16_encode(bv16_encode_state_t *cs, Float gainq; Float lg; Float ppt; - Float lth; Float dummy; int pp; int cpp; @@ -189,8 +188,15 @@ BV_DECLARE(int) bv16_encode(bv16_encode_state_t *cs, /* Level estimation */ dummy = estl_alpha; - lth = estlevel(cs->prevlg[0], &cs->level, &cs->lmax, &cs->lmin, - &cs->lmean, &cs->x1, LGPORDER + 1, Nfdm + 1, &dummy); + estlevel(cs->prevlg[0], + &cs->level, + &cs->lmax, + &cs->lmin, + &cs->lmean, + &cs->x1, + LGPORDER + 1, + Nfdm + 1, + &dummy); /* Scale the scalar quantizer codebook */ for (i = 0; i < (VDIM*CBSZ); i++) diff --git a/libs/broadvoice/src/floating/bv32/bv32encoder.c b/libs/broadvoice/src/floating/bv32/bv32encoder.c index d7a78c44e6..d6ec9b7306 100644 --- a/libs/broadvoice/src/floating/bv32/bv32encoder.c +++ b/libs/broadvoice/src/floating/bv32/bv32encoder.c @@ -103,7 +103,6 @@ BV_DECLARE(int) bv32_encode(bv32_encode_state_t *cs, Float e; Float ee; Float ppt; - Float lth; int pp; int cpp; int i; @@ -193,8 +192,8 @@ BV_DECLARE(int) bv32_encode(bv32_encode_state_t *cs, lg = (ee < TMinE) ? MinE : log(ee/SFRSZ)/log(2.0); bs.gidx[issf] = bv32_gainquan(gainq + issf, lg, cs->lgpm, cs->prevlg, cs->level); - /* Level Estimation */ - lth = bv32_estlevel(cs->prevlg[0], &cs->level, &cs->lmax, &cs->lmin, &cs->lmean, &cs->x1); + /* Level estimation */ + bv32_estlevel(cs->prevlg[0], &cs->level, &cs->lmax, &cs->lmin, &cs->lmean, &cs->x1); /* Scale the excitation codebook */ for (i = 0; i < (VDIM*CBSZ); i++)