diff --git a/celt/celt_lpc.c b/celt/celt_lpc.c
index b69884d42998495ad355f76c1c5056b2a79e82d3..1838319d1c5b0c4b573fea5958778bcfac9047dc 100644
--- a/celt/celt_lpc.c
+++ b/celt/celt_lpc.c
@@ -163,7 +163,6 @@ void _celt_autocorr(
    {
       opus_val32 ac0;
       int shift;
-      int n2;
       ac0 = 1+n;
       if (n&1) ac0 += SHR32(MULT16_16(xx[0],xx[0]),9);
       for(i=(n&1);i<n;i+=2)