summaryrefslogtreecommitdiffstats
path: root/googletest/include
diff options
context:
space:
mode:
authortisi1988 <tisi1988@gmail.com>2018-06-27 20:47:18 (GMT)
committerRubén Sánchez <ruben.sanchez@telescope.tv>2018-06-27 20:49:04 (GMT)
commitdfddc987186100c98d93a830d6ca88fa66ab3dbc (patch)
tree4870b4486ff21c893202c784b15b650ec0b56238 /googletest/include
parentba96d0b1161f540656efdaed035b3c062b60e006 (diff)
downloadgoogletest-dfddc987186100c98d93a830d6ca88fa66ab3dbc.zip
googletest-dfddc987186100c98d93a830d6ca88fa66ab3dbc.tar.gz
googletest-dfddc987186100c98d93a830d6ca88fa66ab3dbc.tar.bz2
FIX: Compilation warning with GCC regarding a non-initialised member from MutexBase class.
Diffstat (limited to 'googletest/include')
-rw-r--r--googletest/include/gtest/internal/gtest-port.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/include/gtest/internal/gtest-port.h b/googletest/include/gtest/internal/gtest-port.h
index 437a4ed..08c5049 100644
--- a/googletest/include/gtest/internal/gtest-port.h
+++ b/googletest/include/gtest/internal/gtest-port.h
@@ -2093,7 +2093,7 @@ class MutexBase {
// This allows initialization to work whether pthread_t is a scalar or struct.
// The flag -Wmissing-field-initializers must not be specified for this to work.
# define GTEST_DEFINE_STATIC_MUTEX_(mutex) \
- ::testing::internal::MutexBase mutex = { PTHREAD_MUTEX_INITIALIZER, false }
+ ::testing::internal::MutexBase mutex = { PTHREAD_MUTEX_INITIALIZER, false, 0 }
// The Mutex class can only be used for mutexes created at runtime. It
// shares its API with MutexBase otherwise.