Remove unused variable 'tmp' from helpfun in ilbc codec
authorMatthew Jordan <mjordan@digium.com>
Fri, 20 Jan 2012 16:00:13 +0000 (16:00 +0000)
committerMatthew Jordan <mjordan@digium.com>
Fri, 20 Jan 2012 16:00:13 +0000 (16:00 +0000)
gcc version 4.6.2 caught an unused variable in the ilbc codec
library.  This would prevent compilation with --enable-dev-mode;
variable removed.
........

Merged revisions 351760 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 351761 from http://svn.asterisk.org/svn/asterisk/branches/10

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

codecs/ilbc/helpfun.c

index 1aba657..b79ac4f 100644 (file)
                               table */
    ){
        int k,n,m, Nit=2, change=0,pos;
-       float tmp;
        static float eps=(float)0.039; /* 50 Hz */
        static float eps2=(float)0.0195;
        static float maxlsf=(float)3.14; /* 4000 Hz */
                    if ((lsf[pos+1]-lsf[pos])<eps) {
 
                        if (lsf[pos+1]<lsf[pos]) {
-                           tmp=lsf[pos+1];
                            lsf[pos+1]= lsf[pos]+eps2;
                            lsf[pos]= lsf[pos+1]-eps2;
                        } else {