[asterisk-commits] mjordan: branch 1.8 r351760 - /branches/1.8/codecs/ilbc/helpfun.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jan 20 09:48:52 CST 2012


Author: mjordan
Date: Fri Jan 20 09:48:48 2012
New Revision: 351760

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=351760
Log:
Remove unused variable 'tmp' from helpfun in ilbc codec

gcc version 4.6.2 caught an unused variable in the ilbc codec
library.  This would prevent compilation with --enable-dev-mode;
variable removed.

Modified:
    branches/1.8/codecs/ilbc/helpfun.c

Modified: branches/1.8/codecs/ilbc/helpfun.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/codecs/ilbc/helpfun.c?view=diff&rev=351760&r1=351759&r2=351760
==============================================================================
--- branches/1.8/codecs/ilbc/helpfun.c (original)
+++ branches/1.8/codecs/ilbc/helpfun.c Fri Jan 20 09:48:48 2012
@@ -277,7 +277,6 @@
                               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 */
@@ -293,7 +292,6 @@
                    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 {




More information about the asterisk-commits mailing list