Skip to content

Commit

Permalink
Silence a spurious uninitialized value warning from GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
nneonneo committed May 3, 2015
1 parent da6a43f commit f020037
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions threes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ static inline board_t execute_move(int move, board_t board, int *changed) {
case 3: // right
return execute_move_3(board, changed);
default:
// should not happen
*changed = 0;
return ~0ULL;
}
}
Expand Down

0 comments on commit f020037

Please sign in to comment.