From abbdf338d6725febd686ccdbe395b207283c04ab Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 6 Jan 2021 16:18:17 +0800 Subject: [PATCH] googletest: pick up change to silence error=maybe-uninitialized warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit to include the fix of https://github.com/google/googletest/pull/3024 otherwise GCC-11 fails to compile the tests with following warning: In file included from ../src/googletest/googletest/src/gtest-all.cc:42: ../src/googletest/googletest/src/gtest-death-test.cc: In function ‘bool testing::internal::StackGrowsDown()’: ../src/googletest/googletest/src/gtest-death-test.cc:1301:24: error: ‘dummy’ may be used uninitialized [-Werror=maybe-uninitialized] 1301 | StackLowerThanAddress(&dummy, &result); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ ../src/googletest/googletest/src/gtest-death-test.cc:1290:13: note: by argument 1 of type ‘const void*’ to ‘void testing::internal::StackLowerThanAddress(const void*, bool*)’ declared here 1290 | static void StackLowerThanAddress(const void* ptr, bool* result) { | ^~~~~~~~~~~~~~~~~~~~~ ../src/googletest/googletest/src/gtest-death-test.cc:1299:7: note: ‘dummy’ declared here 1299 | int dummy; | ^~~~~ cc1plus: all warnings being treated as errors Signed-off-by: Kefu Chai --- src/googletest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/googletest b/src/googletest index 10b1902d893..389cb68b871 160000 --- a/src/googletest +++ b/src/googletest @@ -1 +1 @@ -Subproject commit 10b1902d893ea8cc43c69541d70868f91af3646b +Subproject commit 389cb68b87193358358ae87cc56d257fd0d80189 -- 2.39.5