shithub: flite

Download patch

ref: d6bd1772588083c8a89029ac0f1476f01346fd81
parent: 5095f44178e0cbf98419f1a4a22b5d0581813877
author: Alan W Black <awb@cs.cmu.edu>
date: Sun Jul 12 04:04:02 EDT 2020

fix warnings

--- a/src/wavesynth/cst_units.c
+++ b/src/wavesynth/cst_units.c
@@ -302,12 +302,15 @@
 	    target_lpcres->sizes[pm_i] =
 		target_lpcres->times[pm_i] -
 		(pm_i > 0 ? target_lpcres->times[pm_i-1] : 0);
+#if 0            
 	    if (cst_streq(residual_type,"pulse"))
 		add_residual_pulse(target_lpcres->sizes[pm_i],
 				   &target_lpcres->residual[rpos],
 				   get_frame_size(sts_list, nearest_u_pm),
 				   get_sts_residual(sts_list, nearest_u_pm));
-	    else if (cst_streq(residual_type,"g721"))
+	    else
+#endif
+            if (cst_streq(residual_type,"g721"))
 		add_residual_g721(target_lpcres->sizes[pm_i],
 				   &target_lpcres->residual[rpos],
 				   get_frame_size(sts_list, nearest_u_pm),
@@ -582,6 +585,7 @@
         cst_free(unit_residual_unpacked);
 }
 
+#if 0
 void add_residual_pulse(int targ_size, unsigned char *targ_residual,
 			int unit_size, const unsigned char *unit_residual)
 {
@@ -626,4 +630,5 @@
 	    = cst_short_to_ulaw((short)(int)unit_residual);
 #endif
 }
+#endif