mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
Shell: Fix -Wunreachable-code warnings from clang
This commit is contained in:
parent
f46a40a471
commit
9d06448bc7
Notes:
sideshowbarker
2024-07-18 02:54:28 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/9d06448bc72 Pull-request: https://github.com/SerenityOS/serenity/pull/10399
|
@ -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)
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue