Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gcc compilation errors #300

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix gcc compilation errors #300

wants to merge 2 commits into from

Conversation

elsid
Copy link
Collaborator

@elsid elsid commented Jun 9, 2021

No description provided.

elsid added 2 commits June 9, 2021 21:25
Described here: google/googletest#3219

/home/elsid/dev/ozo/build/pg/gcc_debug/tests/GoogleTest-prefix/src/GoogleTest/googletest/src/gtest-death-test.cc: In function ‘bool testing::internal::StackGrowsDown()’:
/home/elsid/dev/ozo/build/pg/gcc_debug/tests/GoogleTest-prefix/src/GoogleTest/googletest/src/gtest-death-test.cc:1301:24: error: ‘dummy’ may be used uninitialized [-Werror=maybe-uninitialized]
 1301 |   StackLowerThanAddress(&dummy, &result);
      |   ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/home/elsid/dev/ozo/build/pg/gcc_debug/tests/GoogleTest-prefix/src/GoogleTest/googletest/src/gtest-death-test.cc:1290:13: note: by argument 1 of type ‘const void*’ to ‘void testing::internal::StackLowerThanAddress(const void*, bool*)’ declared here
 1290 | static void StackLowerThanAddress(const void* ptr, bool* result) {
      |             ^~~~~~~~~~~~~~~~~~~~~
/home/elsid/dev/ozo/build/pg/gcc_debug/tests/GoogleTest-prefix/src/GoogleTest/googletest/src/gtest-death-test.cc:1299:7: note: ‘dummy’ declared here
 1299 |   int dummy;
      |       ^~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant