From 6d751c93bf7a13b90ccfd09829ac76f662c679e7 Mon Sep 17 00:00:00 2001 From: Juho Hiltunen Date: Tue, 1 May 2018 15:45:19 +0300 Subject: [PATCH] wavegen.c: Fix -Wunused-but-set-variable warning. --- src/libespeak-ng/wavegen.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/libespeak-ng/wavegen.c b/src/libespeak-ng/wavegen.c index 6eb4ce36..c569e976 100644 --- a/src/libespeak-ng/wavegen.c +++ b/src/libespeak-ng/wavegen.c @@ -1397,13 +1397,14 @@ static int SpeedUp(short *outbuf, int length_in, int length_out, int end_of_text int WavegenFill(void) { int finished; - unsigned char *p_start; - - p_start = out_ptr; finished = WavegenFill2(); #if HAVE_SONIC_H + unsigned char *p_start; + + p_start = out_ptr; + if (sonicSpeed > 1.0) { int length; int max_length;