mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
fix: ‘dummy’ may be used uninitialized
This commit is contained in:
parent
0a439427ee
commit
0541e45b92
4
3rdparty/gtest/src/gtest-death-test.cc
vendored
4
3rdparty/gtest/src/gtest-death-test.cc
vendored
@ -1296,8 +1296,8 @@ static void StackLowerThanAddress(const void* ptr, bool* result) {
|
|||||||
GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_
|
GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_
|
||||||
GTEST_ATTRIBUTE_NO_SANITIZE_HWADDRESS_
|
GTEST_ATTRIBUTE_NO_SANITIZE_HWADDRESS_
|
||||||
static bool StackGrowsDown() {
|
static bool StackGrowsDown() {
|
||||||
int dummy;
|
int dummy {};
|
||||||
bool result;
|
bool result {};
|
||||||
StackLowerThanAddress(&dummy, &result);
|
StackLowerThanAddress(&dummy, &result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user