From bc9be03442c07a4f02770e2af3b0590d8e600603 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 24 Jul 2022 09:54:52 -0700 Subject: [PATCH] ast chrtoi: squash -Wswitch-default warning --- lib/ast/chrtoi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ast/chrtoi.c b/lib/ast/chrtoi.c index f3af1c740..88bb94dc5 100644 --- a/lib/ast/chrtoi.c +++ b/lib/ast/chrtoi.c @@ -34,6 +34,8 @@ int chrtoi(const char *s) break; case 0: return (c); + default: // nothing required + break; } c = (c << CHAR_BIT) | x; } -- 2.40.0