diff options
| author | Mel <mel@rnrd.eu> | 2025-05-24 14:18:51 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2025-05-24 14:18:51 +0200 |
| commit | 41e0e31b8586c1f93b5e65cd62ef910227a6677d (patch) | |
| tree | 0b26a7dc66fc1c2ed17b6750c2b3ee0482c344f5 /boot/lex.c | |
| parent | 577c6b4339b7ddc5af011ca06ccae97459f5ec76 (diff) | |
| download | catskill-41e0e31b8586c1f93b5e65cd62ef910227a6677d.tar.zst catskill-41e0e31b8586c1f93b5e65cd62ef910227a6677d.zip | |
Failure when default case reached in non-optional switch functions
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'boot/lex.c')
| -rw-r--r-- | boot/lex.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/boot/lex.c b/boot/lex.c index 0fc6ed1..c66d160 100644 --- a/boot/lex.c +++ b/boot/lex.c @@ -275,7 +275,8 @@ token_kind_to_string(enum Token_Kind kind) return "ASSIGN_RIGHT_SHIFT"; default: - return ""; + failure("unknown token kind passed to `token_kind_to_string`"); + return nil; } } |
