]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
(closes issue #10679)
authorJoshua Colp <jcolp@digium.com>
Tue, 11 Sep 2007 21:41:49 +0000 (21:41 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 11 Sep 2007 21:41:49 +0000 (21:41 +0000)
Reported by: andrew
Build under dev mode when K6OPTS is enabled.

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

codecs/gsm/src/long_term.c
codecs/gsm/src/lpc.c

index 50594ffd71cd94037623f7519b1b756ce90ecb54..83b6fdf857a75d1396248b59856427f6a106d036 100644 (file)
@@ -162,7 +162,10 @@ static void Calculation_of_the_LTP_parameters P4((d,dp,bc_out,Nc_out),
        word            * Nc_out        /*              OUT     */
 )
 {
-       register int    k, lambda;
+       register int    k;
+#ifndef K6OPT
+       register int lambda;
+#endif
        word            Nc, bc;
        word            wt[40];
 
index 49145f86e1ab8d6f32539ba13389ba988c9c6f98..744149e02cb8084669c09d26d9874ec5b0524563 100644 (file)
@@ -35,9 +35,12 @@ static void Autocorrelation P2((s, L_ACF),
  *  be scaled in order to avoid an overflow situation.
  */
 {
+#ifndef K6OPT
        register int    k, i;
+       word temp;
+#endif
 
-       word            temp, smax, scalauto;
+       word            smax, scalauto;
 
 #ifdef USE_FLOAT_MUL
        float           float_s[160];