]> granicus.if.org Git - libvpx/commitdiff
gtest-all.cc: quiet an unused variable warning
authorJames Zern <jzern@google.com>
Thu, 14 Jul 2016 01:36:17 +0000 (18:36 -0700)
committerJames Zern <jzern@google.com>
Thu, 14 Jul 2016 01:36:17 +0000 (18:36 -0700)
under windows / mingw builds

Change-Id: I93f9a5df77cea0c28d4afb272abcde5a9732e355

third_party/googletest/README.libvpx
third_party/googletest/src/src/gtest-all.cc

index 1eca78dd9ab4c319cab7653ca16fe954b3ed3841..0e3b8b937729e4c847db4d0b018cdbb02385e2ab 100644 (file)
@@ -16,4 +16,6 @@ Local Modifications:
   free build.
 - Added GTEST_ATTRIBUTE_UNUSED_ to test registering dummies in TEST_P
   and INSTANTIATE_TEST_CASE_P to remove warnings about unused variables
-  under GCC 5.
\ No newline at end of file
+  under GCC 5.
+- Only define g_in_fast_death_test_child for non-Windows builds; quiets an
+  unused variable warning.
index 8d906279abbed0ac3661272004c19bb6aac6f8ed..912868148e2d88af050ef932fbc5c8330dd9d8a7 100644 (file)
@@ -6612,9 +6612,11 @@ GTEST_DEFINE_string_(
 
 namespace internal {
 
+# if !GTEST_OS_WINDOWS
 // Valid only for fast death tests. Indicates the code is running in the
 // child process of a fast style death test.
 static bool g_in_fast_death_test_child = false;
+# endif  // !GTEST_OS_WINDOWS
 
 // Returns a Boolean value indicating whether the caller is currently
 // executing in the context of the death test child process.  Tools such as