Browse Source

Remove a dead assignment in CompileEquivalents(compiledata.c) [clang scan-build]

master
Reece H. Dunn 9 years ago
parent
commit
b63371bd80
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      src/libespeak-ng/compiledata.c

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

int ix; int ix;
int n_names; int n_names;
int n_bytes; int n_bytes;
int foreign_phoneme;
int foreign_error = 0; int foreign_error = 0;
int remove_stress = 0; int remove_stress = 0;
char *p_start; char *p_start;
if (strcmp(foreign_table_name, "NULL") != 0) if (strcmp(foreign_table_name, "NULL") != 0)
error("Unknown phoneme table '%s'", foreign_table_name); error("Unknown phoneme table '%s'", foreign_table_name);
foreign_error = 1; foreign_error = 1;
foreign_phoneme = 0;
} }


p_start = p_equivalence; p_start = p_equivalence;
} }


if (foreign_error == 0) { if (foreign_error == 0) {
phcode[0] = foreign_phoneme = LookupPhonemeString(names[0]);
if (foreign_phoneme == 0) {
phcode[0] = LookupPhonemeString(names[0]);
if (phcode[0] == 0) {
sprintf(line_buf, "%s/%s", foreign_table_name, names[0]); sprintf(line_buf, "%s/%s", foreign_table_name, names[0]);
error("Unknown phoneme '%s'", line_buf); error("Unknown phoneme '%s'", line_buf);
} }

Loading…
Cancel
Save