@@ -626,10 +626,10 @@ void ResetStdio() {
626626#endif // __POSIX__
627627}
628628
629- ExitCode ProcessGlobalArgsInternal (std::vector<std::string>* args,
630- std::vector<std::string>* exec_args,
631- std::vector<std::string>* errors,
632- OptionEnvvarSettings settings) {
629+ static ExitCode ProcessGlobalArgsInternal (std::vector<std::string>* args,
630+ std::vector<std::string>* exec_args,
631+ std::vector<std::string>* errors,
632+ OptionEnvvarSettings settings) {
633633 // Parse a few arguments which are specific to Node.
634634 std::vector<std::string> v8_args;
635635
@@ -717,7 +717,7 @@ static std::atomic_bool init_called{false};
717717
718718// TODO(addaleax): Turn this into a wrapper around InitializeOncePerProcess()
719719// (with the corresponding additional flags set), then eventually remove this.
720- ExitCode InitializeNodeWithArgsInternal (
720+ static ExitCode InitializeNodeWithArgsInternal (
721721 std::vector<std::string>* argv,
722722 std::vector<std::string>* exec_argv,
723723 std::vector<std::string>* errors,
@@ -839,10 +839,10 @@ int InitializeNodeWithArgs(std::vector<std::string>* argv,
839839 InitializeNodeWithArgsInternal (argv, exec_argv, errors, flags));
840840}
841841
842- std::unique_ptr<InitializationResultImpl> InitializeOncePerProcessInternal (
843- const std::vector<std::string>& args,
844- ProcessInitializationFlags::Flags flags =
845- ProcessInitializationFlags::kNoFlags ) {
842+ static std::unique_ptr<InitializationResultImpl>
843+ InitializeOncePerProcessInternal ( const std::vector<std::string>& args,
844+ ProcessInitializationFlags::Flags flags =
845+ ProcessInitializationFlags::kNoFlags ) {
846846 auto result = std::make_unique<InitializationResultImpl>();
847847 result->args_ = args;
848848
@@ -1165,7 +1165,7 @@ ExitCode LoadSnapshotDataAndRun(const SnapshotData** snapshot_data_ptr,
11651165 return exit_code;
11661166}
11671167
1168- ExitCode StartInternal (int argc, char ** argv) {
1168+ static ExitCode StartInternal (int argc, char ** argv) {
11691169 CHECK_GT (argc, 0 );
11701170
11711171 // Hack around with the argv pointer. Used for process.title = "blah".
0 commit comments