Browse Source

Shell: Fix -Wunreachable-code warnings from clang

Nico Weber 3 năm trước cách đây
mục cha
commit
9d06448bc7
2 tập tin đã thay đổi với 0 bổ sung2 xóa
  1. 0 1
      Userland/Shell/Builtin.cpp
  2. 0 1
      Userland/Shell/Parser.cpp

+ 0 - 1
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)

+ 0 - 1
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()