From ee698e89d55e1b8b7883740bf6874c51f8270aa8 Mon Sep 17 00:00:00 2001 From: Anuradha Weeraman Date: Sat, 20 Jun 2020 07:42:53 -0400 Subject: [PATCH] Fix compiler warning in INIT/ratz.c (#28) src/cmd/INIT/ratz.c: - Fix build warning: src/cmd/INIT/ratz.c:4741:2: warning: case label value exceeds maximum value for type 4741 | case 0241: | ^~~~ The character literal in the switch expression was being treated as a signed char while the case label 0241 is greater than 127, resulting in this warning. --- src/cmd/INIT/ratz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/INIT/ratz.c b/src/cmd/INIT/ratz.c index 52f75e95e..a87e711b7 100644 --- a/src/cmd/INIT/ratz.c +++ b/src/cmd/INIT/ratz.c @@ -4736,7 +4736,7 @@ char** argv; } else state.id = "ratz"; - switch ('~') + switch ((unsigned char)'~') { case 0241: switch ('\n')