From 9d06448bc727738f3347ed29033eb4356ac3e916 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 8 Oct 2021 08:35:32 -0400 Subject: Shell: Fix -Wunreachable-code warnings from clang --- Userland/Shell/Builtin.cpp | 1 - Userland/Shell/Parser.cpp | 1 - 2 files changed, 2 deletions(-) (limited to 'Userland/Shell') diff --git a/Userland/Shell/Builtin.cpp b/Userland/Shell/Builtin.cpp index 01b85b712e..b3c7da9baf 100644 --- a/Userland/Shell/Builtin.cpp +++ b/Userland/Shell/Builtin.cpp @@ -416,7 +416,6 @@ int Shell::builtin_exit(int argc, const char** argv) printf("Good-bye!\n"); } exit(exit_code); - return 0; } int Shell::builtin_export(int argc, const char** argv) diff --git a/Userland/Shell/Parser.cpp b/Userland/Shell/Parser.cpp index 260fffbcdd..b56c599b64 100644 --- a/Userland/Shell/Parser.cpp +++ b/Userland/Shell/Parser.cpp @@ -161,7 +161,6 @@ NonnullRefPtrVector Parser::parse_as_multiple_expressions() return nodes; nodes.append(node.release_nonnull()); } - return nodes; } RefPtr Parser::parse_toplevel() -- cgit v1.2.3