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

static int count_frames = 0; static int count_frames = 0;
static int error_count = 0; static int error_count = 0;
static int resample_count = 0; static int resample_count = 0;
static int resample_fails = 0;
static int then_count = 0; static int then_count = 0;
static bool after_if = false; static bool after_if = false;


int item_terminator; int item_terminator;
char item_string[N_ITEM_STRING]; 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, ...) static void error(const char *format, ...)
{ {
va_list args; va_list args;
int max = 0; int max = 0;
int length; int length;
int sr1, sr2; int sr1, sr2;
int len;
int scale_factor = 0; int scale_factor = 0;


fseek(f, 24, SEEK_SET); fseek(f, 24, SEEK_SET);

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

if ((f = fopen(fname, "rb")) != NULL) { if ((f = fopen(fname, "rb")) != NULL) {
int ix; int ix;
int header[3]; int header[3];
char command[sizeof(fname2)+sizeof(fname2)+40];


if (fseek(f, 20, SEEK_SET) == -1) { if (fseek(f, 20, SEEK_SET) == -1) {
int error = errno; int error = errno;

Loading…
Cancel
Save