浏览代码

clear gcc warning

richarddobson 3 月之前
父节点
当前提交
2f9230186b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dev/science/specanal.c

+ 1 - 1
dev/science/specanal.c

@@ -3828,7 +3828,7 @@ int smooth_and_output_tempered_pitch(dataptr dz)
 
 
 int smooth_and_output_varying_hf(dataptr dz) 
 int smooth_and_output_varying_hf(dataptr dz) 
 {
 {
-    int exit_status, reranged[8], lastpitch[8], thispitch[8], does_repeat;
+    int exit_status, reranged[8] = {0}, lastpitch[8], thispitch[8], does_repeat;
     int n, m, t, k, f, omitsum = 0, hfrepet;
     int n, m, t, k, f, omitsum = 0, hfrepet;
     int itemp, peakcnt, omit[8];
     int itemp, peakcnt, omit[8];
     double transittime, temp;
     double transittime, temp;