mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Shamelessly pander to compilers whose data flow warning systems
insist that a variable should be initialised in all branches of an if, instead of just all the non-assertion-failing ones. [originally from svn r7989]
This commit is contained in:
6
solo.c
6
solo.c
@ -2779,10 +2779,10 @@ static game_state *new_game(midend *me, game_params *params, char *desc)
|
||||
|
||||
if (*desc == '_')
|
||||
c = 0;
|
||||
else if (*desc >= 'a' && *desc <= 'z')
|
||||
else {
|
||||
assert(*desc >= 'a' && *desc <= 'z');
|
||||
c = *desc - 'a' + 1;
|
||||
else
|
||||
assert(!"Shouldn't get here");
|
||||
}
|
||||
desc++;
|
||||
|
||||
adv = (c != 25); /* 'z' is a special case */
|
||||
|
Reference in New Issue
Block a user