-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #852 from AlwinEsch/Matrix-change
[Matrix] fix build error about gtest if warning set to error
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
depends/common/googletest/0001-FixWarningMaybe-uninitialized.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- a/googletest/src/gtest-death-test.cc | ||
+++ b/googletest/src/gtest-death-test.cc | ||
@@ -1281,7 +1281,7 @@ | ||
GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_ | ||
GTEST_ATTRIBUTE_NO_SANITIZE_HWADDRESS_ | ||
static void StackLowerThanAddress(const void* ptr, bool* result) { | ||
- int dummy; | ||
+ int dummy = 0; | ||
*result = (&dummy < ptr); | ||
} | ||
|
||
@@ -1289,7 +1289,7 @@ | ||
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters