]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Allow ilbc code to build under dev mode
authorKinsey Moore <kmoore@digium.com>
Fri, 20 Jan 2012 19:19:11 +0000 (19:19 +0000)
committerKinsey Moore <kmoore@digium.com>
Fri, 20 Jan 2012 19:19:11 +0000 (19:19 +0000)
GCC 4.6.3 found some set/unused variables in the ILBC code.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@351858 65c4cc65-6c06-0410-ace0-fbb531ad65f3

codecs/ilbc/LPCencode.c
codecs/ilbc/iLBC_decode.c

index 19695c0fa552eece2761a4d9edd8b37abe10bd9f..eed1f893f65acc7829a3506c98ff7c06c2d61f2c 100644 (file)
    ){
        float lsf[LPC_FILTERORDER * LPC_N_MAX];
        float lsfdeq[LPC_FILTERORDER * LPC_N_MAX];
-       int change=0;
 
        SimpleAnalysis(lsf, data, iLBCenc_inst);
        SimplelsfQ(lsfdeq, lsf_index, lsf, iLBCenc_inst->lpc_n);
 
 
 
-       change=LSF_check(lsfdeq, LPC_FILTERORDER, iLBCenc_inst->lpc_n);
+       LSF_check(lsfdeq, LPC_FILTERORDER, iLBCenc_inst->lpc_n);
        SimpleInterpolateLSF(syntdenum, weightdenum,
            lsf, lsfdeq, iLBCenc_inst->lsfold,
            iLBCenc_inst->lsfdeqold, LPC_FILTERORDER, iLBCenc_inst);
index ae62bf44080c8ce42facf9bbf571d9b7a1fdd4b1..978d480ec1ed97b1ab8039610bde160813cdbb00 100644 (file)
        int lag, ilag;
        float cc, maxcc;
        int idxVec[STATE_LEN];
-       int check;
        int gain_index[NASUB_MAX*CB_NSTAGES],
            extra_gain_index[CB_NSTAGES];
        int cb_index[CB_NSTAGES*NASUB_MAX], extra_cb_index[CB_NSTAGES];
                /* decode the lsf */
 
                SimplelsfDEQ(lsfdeq, lsf_i, iLBCdec_inst->lpc_n);
-               check=LSF_check(lsfdeq, LPC_FILTERORDER,
+               LSF_check(lsfdeq, LPC_FILTERORDER,
                    iLBCdec_inst->lpc_n);
                DecoderInterpolateLSF(syntdenum, weightdenum,
                    lsfdeq, LPC_FILTERORDER, iLBCdec_inst);