mirror of https://github.com/YosysHQ/nextpnr.git
googletest: fix -Werror=maybe-uninitialized failure.
This commit is contained in:
parent
574f504787
commit
c48157aa4b
|
|
@ -1004,7 +1004,7 @@ void StackLowerThanAddress(const void* ptr, bool* result) {
|
|||
// Make sure AddressSanitizer does not tamper with the stack here.
|
||||
GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_
|
||||
bool StackGrowsDown() {
|
||||
int dummy;
|
||||
int dummy = 0;
|
||||
bool result;
|
||||
StackLowerThanAddress(&dummy, &result);
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Reference in New Issue