diff options
author | Dominic Sacré <dominic.sacre@gmx.de> | 2016-08-24 13:38:17 (GMT) |
---|---|---|
committer | Dominic Sacré <dominic.sacre@gmx.de> | 2018-08-31 12:57:23 (GMT) |
commit | bb18e25d15bddec1e1235c45be3a9c9f164754a3 (patch) | |
tree | 934769a149782ceb557c2be269d7c540fbb4e22e /googletest | |
parent | d41f53ae7816863cc52bf3f357dff25597c58864 (diff) | |
download | googletest-bb18e25d15bddec1e1235c45be3a9c9f164754a3.zip googletest-bb18e25d15bddec1e1235c45be3a9c9f164754a3.tar.gz googletest-bb18e25d15bddec1e1235c45be3a9c9f164754a3.tar.bz2 |
Make g_argvs static
Fix Clang warning:
| warning: no previous extern declaration for non-static variable 'g_argvs'
| [-Wmissing-variable-declarations]
Diffstat (limited to 'googletest')
-rw-r--r-- | googletest/src/gtest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc index 9796637..96b07c6 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<std::string> g_argvs; +static ::std::vector<std::string> g_argvs; ::std::vector<std::string> GetArgvs() { #if defined(GTEST_CUSTOM_GET_ARGVS_) |