]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
googletest submodule: pick up change to silence error=maybe-uninitialized warning 46223/head
authorKefu Chai <kchai@redhat.com>
Wed, 6 Jan 2021 08:18:17 +0000 (16:18 +0800)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 10 May 2022 19:03:17 +0000 (15:03 -0400)
commitcf96c6f8260482cb47f43f87ae9268b434e9df97
treeb26800d16202deb4f630c177b9299e10e614ed5c
parentcffc58dca8674fb1a07042b77c7a4e78327139b3
googletest submodule: pick up change to silence error=maybe-uninitialized warning

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 <kchai@redhat.com>
(cherry picked from commit abbdf338d6725febd686ccdbe395b207283c04ab)
src/googletest