From 1210464a3198dcb629eee9858dacb6e2d7a130ec Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Sun, 3 Jan 2016 14:34:03 +0000 Subject: [PATCH] CompileToneSpec always returns 0, so make it return void. --- src/libespeak-ng/compiledata.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/libespeak-ng/compiledata.c b/src/libespeak-ng/compiledata.c index c9e3313a..8126a631 100644 --- a/src/libespeak-ng/compiledata.c +++ b/src/libespeak-ng/compiledata.c @@ -1565,7 +1565,7 @@ static int LoadDataFile(const char *path, int control) return addr; } -static int CompileToneSpec(void) +static void CompileToneSpec(void) { int pitch1 = 0; int pitch2 = 0; @@ -1601,8 +1601,6 @@ static int CompileToneSpec(void) *prog_out++ = i_AMPENV + ((amp_env >> 16) & 0xf); *prog_out++ = amp_env; } - - return 0; } @@ -2256,7 +2254,7 @@ int CompilePhoneme(int compile_phoneme) break; case kTONESPEC: DecThenCount(); - endphoneme = CompileToneSpec(); + CompileToneSpec(); break; case kCONTINUE: *prog_out++ = i_CONTINUE;