Browse Source

Enable and fix -Wunused-variable warnings.

master
Reece H. Dunn 7 years ago
parent
commit
d89fa59bed

+ 2
- 2
configure.ac View File

dnl Reference: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html dnl Reference: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
dnl ================================================================ dnl ================================================================


AX_CHECK_COMPILE_FLAG([-Wunused-function], [CFLAGS="-Wunused-function $CFLAGS"]) AX_CHECK_COMPILE_FLAG([-Wunused-function], [CFLAGS="-Wunused-function $CFLAGS"])

AX_CHECK_COMPILE_FLAG([-Wunused-parameter], [CFLAGS="-Wunused-parameter $CFLAGS"]) AX_CHECK_COMPILE_FLAG([-Wunused-parameter], [CFLAGS="-Wunused-parameter $CFLAGS"])
AX_CHECK_COMPILE_FLAG([-Wunused-variable], [CFLAGS="-Wunused-variable $CFLAGS"])


dnl ================================================================ dnl ================================================================
dnl Generate output. dnl Generate output.

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

static void EndPhonemeTable() static void EndPhonemeTable()
{ {
int ix; int ix;
int *pw;
int length;


if (n_phoneme_tabs == 0) if (n_phoneme_tabs == 0)
return; return;

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

static int GetC(void) static int GetC(void)
{ {
int c1; int c1;
static int ungot2 = 0;


if ((c1 = ungot_char) != 0) { if ((c1 = ungot_char) != 0) {
ungot_char = 0; ungot_char = 0;

+ 0
- 2
src/libespeak-ng/synthdata.c View File

int length = 0; int length = 0;
int rate; int rate;
unsigned char *p; unsigned char *p;
int *pw;


espeak_ng_STATUS status; espeak_ng_STATUS status;
if ((status = ReadPhFile((void **)&phoneme_tab_data, "phontab", NULL, context)) != ENS_OK) if ((status = ReadPhFile((void **)&phoneme_tab_data, "phontab", NULL, context)) != ENS_OK)
unsigned int data; unsigned int data;
int instn; int instn;
int instn2; int instn2;
int count;
int check_endtype = 0; int check_endtype = 0;
PHONEME_TAB *ph; PHONEME_TAB *ph;
PHONEME_LIST *plist_this; PHONEME_LIST *plist_this;

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

int more_suffixes; int more_suffixes;
int confirm_prefix; int confirm_prefix;
int spell_word; int spell_word;
int stress_bits;
int emphasize_allcaps = 0; int emphasize_allcaps = 0;
int wflags; int wflags;
int wmark; int wmark;

+ 0
- 1
tests/readclause.c View File

static int charix_top = 0; static int charix_top = 0;
static int tone2; static int tone2;
static char voice_change_name[40]; static char voice_change_name[40];
static int terminator;


static espeak_ng_STATUS static espeak_ng_STATUS
set_text(const char *text, const char *voicename) set_text(const char *text, const char *voicename)

Loading…
Cancel
Save