From: Orgad Shaneh Date: Wed, 9 Sep 2015 09:32:57 +0000 (+0300) Subject: Fix unused static variable warning on Windows X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=904ad180fe5d6d49a4dbf30a31e1b7f6516ca567;p=googletest.git Fix unused static variable warning on Windows --- diff --git a/googletest/src/gtest-death-test.cc b/googletest/src/gtest-death-test.cc index c076d07..a01a369 100644 --- a/googletest/src/gtest-death-test.cc +++ b/googletest/src/gtest-death-test.cc @@ -121,7 +121,9 @@ namespace internal { // Valid only for fast death tests. Indicates the code is running in the // child process of a fast style death test. +# if !GTEST_OS_WINDOWS static bool g_in_fast_death_test_child = false; +# endif // Returns a Boolean value indicating whether the caller is currently // executing in the context of the death test child process. Tools such as