Shell: Fix -Wunreachable-code warnings from clang

This commit is contained in:
Nico Weber 2021-10-08 08:35:32 -04:00 committed by Andreas Kling
parent f46a40a471
commit 9d06448bc7
Notes: sideshowbarker 2024-07-18 02:54:28 +09:00
2 changed files with 0 additions and 2 deletions

View file

@ -416,7 +416,6 @@ int Shell::builtin_exit(int argc, const char** argv)
printf("Good-bye!\n"); printf("Good-bye!\n");
} }
exit(exit_code); exit(exit_code);
return 0;
} }
int Shell::builtin_export(int argc, const char** argv) int Shell::builtin_export(int argc, const char** argv)

View file

@ -161,7 +161,6 @@ NonnullRefPtrVector<AST::Node> Parser::parse_as_multiple_expressions()
return nodes; return nodes;
nodes.append(node.release_nonnull()); nodes.append(node.release_nonnull());
} }
return nodes;
} }
RefPtr<AST::Node> Parser::parse_toplevel() RefPtr<AST::Node> Parser::parse_toplevel()