diff --git a/src/libespeak-ng/compiledata.c b/src/libespeak-ng/compiledata.c index 7aad556a..6bc3120d 100644 --- a/src/libespeak-ng/compiledata.c +++ b/src/libespeak-ng/compiledata.c @@ -409,7 +409,6 @@ static int duplicate_references = 0; static int count_frames = 0; static int error_count = 0; static int resample_count = 0; -static int resample_fails = 0; static int then_count = 0; static bool after_if = false; @@ -461,24 +460,6 @@ int item_type; int item_terminator; char item_string[N_ITEM_STRING]; -static int ref_sorter(char **a, char **b) -{ - int ix; - - REF_HASH_TAB *p1 = (REF_HASH_TAB *)(*a); - REF_HASH_TAB *p2 = (REF_HASH_TAB *)(*b); - - ix = strcoll(p1->string, p2->string); - if (ix != 0) - return ix; - - ix = p1->ph_table - p2->ph_table; - if (ix != 0) - return ix; - - return p1->ph_mnemonic - p2->ph_mnemonic; -} - static void error(const char *format, ...) { va_list args; @@ -1098,7 +1079,6 @@ static int LoadWavefile(FILE *f, const char *fname) int max = 0; int length; int sr1, sr2; - int len; int scale_factor = 0; fseek(f, 24, SEEK_SET); diff --git a/src/libespeak-ng/soundicon.c b/src/libespeak-ng/soundicon.c index 3d124d80..c6f1ca6b 100644 --- a/src/libespeak-ng/soundicon.c +++ b/src/libespeak-ng/soundicon.c @@ -73,7 +73,6 @@ static espeak_ng_STATUS LoadSoundFile(const char *fname, int index, espeak_ng_ER if ((f = fopen(fname, "rb")) != NULL) { int ix; int header[3]; - char command[sizeof(fname2)+sizeof(fname2)+40]; if (fseek(f, 20, SEEK_SET) == -1) { int error = errno;