summaryrefslogtreecommitdiff
path: root/Userland/Shell
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2021-10-08 08:35:32 -0400
committerAndreas Kling <kling@serenityos.org>2021-10-08 23:33:46 +0200
commit9d06448bc727738f3347ed29033eb4356ac3e916 (patch)
tree97617a00dca07b510b538e4bedc663bd1c20ad49 /Userland/Shell
parentf46a40a471d38dd7c81a7420048d7885f42a97ef (diff)
downloadserenity-9d06448bc727738f3347ed29033eb4356ac3e916.zip
Shell: Fix -Wunreachable-code warnings from clang
Diffstat (limited to 'Userland/Shell')
-rw-r--r--Userland/Shell/Builtin.cpp1
-rw-r--r--Userland/Shell/Parser.cpp1
2 files changed, 0 insertions, 2 deletions
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<AST::Node> Parser::parse_as_multiple_expressions()
return nodes;
nodes.append(node.release_nonnull());
}
- return nodes;
}
RefPtr<AST::Node> Parser::parse_toplevel()