瀏覽代碼

remove warnings

richarddobson 2 年之前
父節點
當前提交
df69e904a8
共有 2 個文件被更改,包括 6 次插入6 次删除
  1. 3 3
      dev/grain/grain1.c
  2. 3 3
      dev/grain/graprepro.c

+ 3 - 3
dev/grain/grain1.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1983-2020 Trevor Wishart and Composers Desktop Project Ltd
+ * Copyright (c) 1983-2023 Trevor Wishart and Composers Desktop Project Ltd
  * http://www.trevorwishart.co.uk
  * http://www.composersdesktop.com
  *
@@ -1910,7 +1910,7 @@ int *is_first_grain,int is_last_grain,int chans,int crosbuf,dataptr dz)
 
 int timestretch_iterative(dataptr dz)
 {
-    int exit_status, do_slow, do_regu;
+    int exit_status, do_slow = 0, do_regu;
     float *ibuf = dz->sampbuf[0];
     float *obuf = dz->sampbuf[1];
 //  double *peak = dz->parray[0]; 
@@ -1928,7 +1928,7 @@ int timestretch_iterative(dataptr dz)
     float val, nextval;
     double z = (dz->param[RRR_END] - dz->param[RRR_START]) * dz->param[RRR_REPET];
     double starttime_of_iter, davg_step;
-    int total_slolen, total_slo_incr, slo_incr, min_step, j, avg_step, gap, maxsamp;
+    int total_slolen, total_slo_incr, slo_incr, min_step, j, avg_step, gap, maxsamp = 0;
     int *seg_step = NULL, *seg_len = NULL;
     int thiselementcnt, regusegscnt, okcnt, *seg_ok = NULL;
 

+ 3 - 3
dev/grain/graprepro.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1983-2020 Trevor Wishart and Composers Desktop Project Ltd
+ * Copyright (c) 1983-2023 Trevor Wishart and Composers Desktop Project Ltd
  * http://www.trevorwishart.co.uk
  * http://www.composersdesktop.com
  *
@@ -16,7 +16,7 @@
  GNU Lesser General Public License for more details.
  
  You should have received a copy of the GNU Lesser General Public
- License aint with the CDP System; if not, write to the Free Software
+ License along with the CDP System; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  02111-1307 USA
  *
@@ -366,7 +366,7 @@ void convert_sampletime_to_samplegap(dataptr dz)
             fflush(stdout);
         } else {
             dz->parray[GR_SYNCTIME][0] = (double)dz->iparam[GR_ABS_SPLICELEN];
-            fprintf(stdout,"WARNING: All grain times offset by %lf secs (%ld samps) to allow for startsplice\n",
+            fprintf(stdout,"WARNING: All grain times offset by %lf secs (%d samps) to allow for startsplice\n",
             (double)(lval/dz->infile->channels)/(double)dz->infile->srate,lval);
             fflush(stdout);
         }