Add more const qualifiers on static arrays

So we know they are just tables, get protected from overflows, and get shared between processes
This commit is contained in:
Samuel Thibault
2022-06-09 08:43:50 +02:00
parent 2d3a49b161
commit a660fc04cc
14 changed files with 51 additions and 51 deletions
+1 -1
View File
@@ -428,7 +428,7 @@ static bool StressCondition(Translator *tr, PHONEME_LIST *plist, int condition,
{
int stress_level;
PHONEME_LIST *pl;
static int condition_level[4] = { 1, 2, 4, 15 };
static const int condition_level[4] = { 1, 2, 4, 15 };
if (phoneme_tab[plist[0].phcode]->type == phVOWEL)
pl = plist;