shithub: flite

Download patch

ref: 641b9687494c1351b1f085171c8786e156434630
parent: aa50ceed3bcc5b4d669ef6d7b0b570ed5c3ad659
author: Alan W Black <awb@cs.cmu.edu>
date: Mon Jul 6 12:24:16 EDT 2020

fix warnings

--- a/src/cg/cst_cg_map.c
+++ b/src/cg/cst_cg_map.c
@@ -316,7 +316,8 @@
 
 float *cst_read_float_array(cst_file fd,int bs)
 {
-    int bytecount, i;
+    unsigned int i;
+    int bytecount;
     float* ret;
 
     ret = (float *)cst_read_padded(fd,&bytecount,bs);
@@ -328,7 +329,8 @@
 
 unsigned short *cst_read_ushort_array(cst_file fd,int bs)
 {
-    int bytecount, i;
+    unsigned int i;
+    int bytecount;
     unsigned short* ret;
 
     ret = (unsigned short *)cst_read_padded(fd,&bytecount,bs);
@@ -340,7 +342,8 @@
 
 double *cst_read_double_array(cst_file fd,int bs)
 {
-    int bytecount, i;
+    unsigned int i;
+    int bytecount;
     double* ret;
 
     ret = (double *)cst_read_padded(fd,&bytecount,bs);
--- a/tools/find_sts_main.c
+++ b/tools/find_sts_main.c
@@ -51,7 +51,7 @@
 
 float lpc_min;
 float lpc_range;
-char *residual_codec = "ulaw";
+const char *residual_codec = "ulaw";
 cst_track *vuv;
 
 void inv_lpc_filterd(short *sig, float *a, int order, double *res, int size)