upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / openrct2 / repos / community-x86_64 / googletest-fix-maybe-uninitialized.patch
blob5b73a8d7d781d3da24a2c46f652c789fae27d401
1 diff --git a/googletest/src/gtest-death-test.cc b/googletest/src/gtest-death-test.cc
2 index fca1035..d9ac1e6 100644
3 --- a/googletest/src/gtest-death-test.cc
4 +++ b/googletest/src/gtest-death-test.cc
5 @@ -996,14 +996,14 @@ static int ExecDeathTestChildMain(void* child_arg) {
6 // correct answer.
7 void StackLowerThanAddress(const void* ptr, bool* result) GTEST_NO_INLINE_;
8 void StackLowerThanAddress(const void* ptr, bool* result) {
9 - int dummy;
10 + int dummy = 0;
11 *result = (&dummy < ptr);
14 // Make sure AddressSanitizer does not tamper with the stack here.
15 GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_
16 bool StackGrowsDown() {
17 - int dummy;
18 + int dummy = 0;
19 bool result;
20 StackLowerThanAddress(&dummy, &result);
21 return result;