diff options
| author | Simon Tatham <anakin@pobox.com> | 2008-04-14 11:32:06 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2008-04-14 11:32:06 +0000 |
| commit | 83121fb826f8ce669aa1d02816bb6adaeee1257b (patch) | |
| tree | d5e6fbb36cc4c360da9050c8acead761874c12ee /solo.c | |
| parent | 4bd99ecae9d1d02f85ed63c9cfd7ef21dfb7d29a (diff) | |
| download | puzzles-83121fb826f8ce669aa1d02816bb6adaeee1257b.zip puzzles-83121fb826f8ce669aa1d02816bb6adaeee1257b.tar.gz puzzles-83121fb826f8ce669aa1d02816bb6adaeee1257b.tar.bz2 puzzles-83121fb826f8ce669aa1d02816bb6adaeee1257b.tar.xz | |
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]
Diffstat (limited to 'solo.c')
| -rw-r--r-- | solo.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 */ |