Fix clang -Wunreachable-code-break warnings.

This commit is contained in:
Reece H. Dunn
2015-12-30 15:54:32 +00:00
parent c1f0529747
commit 9e643b5620
2 changed files with 1 additions and 7 deletions
+1 -2
View File
@@ -437,8 +437,7 @@ int main(int argc, char **argv)
printf("\n");
PrintVersion();
printf("%s", help_text);
exit(0);
break;
return 0;
case 'k':
option_capitals = atoi(optarg2);
break;
-5
View File
@@ -651,15 +651,12 @@ static bool InterpretCondition(Translator *tr, int control, PHONEME_LIST *plist,
case 0x00:
// phoneme type, vowel, nasal, fricative, etc
return ph->type == data;
break;
case 0x20:
// place of articulation
return ((ph->phflags >> 16) & 0xf) == data;
break;
case 0x40:
// is a bit set in phoneme flags
return (ph->phflags & (1 << data)) != 0;
break;
case 0x80:
switch (data)
{
@@ -677,7 +674,6 @@ static bool InterpretCondition(Translator *tr, int control, PHONEME_LIST *plist,
return plist->sourceix == 0;
case 8: // isWordEnd
return plist[1].sourceix || (plist[1].ph->type == phPAUSE);
break;
case 9: // isAfterStress
if (plist->sourceix != 0)
return false;
@@ -698,7 +694,6 @@ static bool InterpretCondition(Translator *tr, int control, PHONEME_LIST *plist,
if (plist->ph->type == phVOWEL)
return false;
}
break;
case 12: // isVoiced
return (ph->type == phVOWEL) || (ph->type == phLIQUID) || (ph->phflags & phVOICED);
case 13: // isFirstVowel