Browse Source

fix compiler warnings for unused variables and functions.

See commits ae97fa16 and a178ea1b.
master
Juho Hiltunen 2 years ago
parent
commit
bdd46838c0
2 changed files with 0 additions and 21 deletions
  1. 0
    20
      src/libespeak-ng/compiledata.c
  2. 0
    1
      src/libespeak-ng/soundicon.c

+ 0
- 20
src/libespeak-ng/compiledata.c View File

@@ -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);

+ 0
- 1
src/libespeak-ng/soundicon.c View File

@@ -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;

Loading…
Cancel
Save