diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc index 97966377..96b07c68 100644 --- a/googletest/src/gtest.cc +++ b/googletest/src/gtest.cc @@ -427,7 +427,7 @@ void AssertHelper::operator=(const Message& message) const { GTEST_API_ GTEST_DEFINE_STATIC_MUTEX_(g_linked_ptr_mutex); // A copy of all command line arguments. Set by InitGoogleTest(). -::std::vector g_argvs; +static ::std::vector g_argvs; ::std::vector GetArgvs() { #if defined(GTEST_CUSTOM_GET_ARGVS_)