From 1c578384d13567f837ad8f533177559904a56dcd Mon Sep 17 00:00:00 2001 From: Sergey Lebedev Date: Sat, 8 Jul 2023 15:49:59 +0200 Subject: [PATCH] BUILD: fix compiling with gcc13 (#788) --- test/gtest/common/gtest-all.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/gtest/common/gtest-all.cc b/test/gtest/common/gtest-all.cc index 5abe2e27f1..b723d67a95 100644 --- a/test/gtest/common/gtest-all.cc +++ b/test/gtest/common/gtest-all.cc @@ -8966,8 +8966,8 @@ static void StackLowerThanAddress(const void* ptr, bool* result) { GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_ GTEST_ATTRIBUTE_NO_SANITIZE_HWADDRESS_ static bool StackGrowsDown() { - int dummy; - bool result; + int dummy = 0; + bool result = 0; StackLowerThanAddress(&dummy, &result); return result; }