diff options
author | Vincent Douillet <vincent@vdouillet.fr> | 2022-12-03 22:00:15 +0100 |
---|---|---|
committer | Vincent Douillet <vincent@vdouillet.fr> | 2022-12-03 22:00:15 +0100 |
commit | 4382d5aaf86ccfc09c38f5ede0e1fa06beb04684 (patch) | |
tree | 22dde0326a662fbfb64519d5629c3b72ac29c54c /02.c | |
parent | be3abab7de115e3093a2d085275d0f8d8b1ba42d (diff) |
day 2: fix warning when compiling with -O2
Diffstat (limited to '02.c')
-rw-r--r-- | 02.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -104,6 +104,8 @@ int compute_round_score_p2(struct round_p2* round) { else me = (enum draw) ((int) opponent + 1); break; + default: + err(2, "unknown result type"); } return (int) me + (int) result; } |