]> git.sesse.net Git - kdenlive/blobdiff - src/audioscopes/ffttools.cpp
Fix a couple of compile warnings because of unused and uninitialized variables.
[kdenlive] / src / audioscopes / ffttools.cpp
index b16106f26eb2d9162dc7a78379b04c5ddb35b967..3d1ae83fb624dba7639e56deca026735dbedffc7 100644 (file)
@@ -292,7 +292,7 @@ const QVector<float> FFTTools::interpolatePeakPreserving(const QVector<float> in
         // If there are more than 2 samples per pixel in average, then use the maximum of them
         // since by only looking at the left sample we might miss some maxima.
         uint src = left;
-        int xi_prev = 0;
+//         int xi_prev = 0;
         int points;
 
 #ifdef DEBUG_FFTTOOLS
@@ -316,7 +316,7 @@ const QVector<float> FFTTools::interpolatePeakPreserving(const QVector<float> in
                 points++;
             }
 
-            xi_prev = xi;
+//             xi_prev = xi;
         }
     }
     // Fill the rest of the vector if the right border exceeds the input vector.