Skip to content

Commit

Permalink
[GTest] Fix gtest with gcc11 (#2181)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredroy authored Jun 16, 2021
1 parent 017b500 commit d5b0cbc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1296,7 +1296,7 @@ static void StackLowerThanAddress(const void* ptr, bool* result) {
GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_
GTEST_ATTRIBUTE_NO_SANITIZE_HWADDRESS_
static bool StackGrowsDown() {
int dummy;
int dummy = 0;
bool result;
StackLowerThanAddress(&dummy, &result);
return result;
Expand Down

0 comments on commit d5b0cbc

Please sign in to comment.