summaryrefslogtreecommitdiff
path: root/02.c
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2022-12-03 22:00:15 +0100
committerVincent Douillet <vincent@vdouillet.fr>2022-12-03 22:00:15 +0100
commit4382d5aaf86ccfc09c38f5ede0e1fa06beb04684 (patch)
tree22dde0326a662fbfb64519d5629c3b72ac29c54c /02.c
parentbe3abab7de115e3093a2d085275d0f8d8b1ba42d (diff)
day 2: fix warning when compiling with -O2
Diffstat (limited to '02.c')
-rw-r--r--02.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/02.c b/02.c
index 8ca0423..bf636a4 100644
--- a/02.c
+++ b/02.c
@@ -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;
}