Skip to content

Commit

Permalink
Update googletest to fix gcc error
Browse files Browse the repository at this point in the history
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;
      |       ^~~~~
  • Loading branch information
elsid committed Jun 9, 2021
1 parent 8325326 commit 4aba895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ include(ExternalProject)
ExternalProject_Add(
GoogleTest
GIT_REPOSITORY "https://github.com/google/googletest.git"
GIT_TAG release-1.10.0
GIT_TAG aa533abfd4232b01f9e57041d70114d5a77e6de0
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}
UPDATE_COMMAND ""
LOG_DOWNLOAD ON
Expand Down

0 comments on commit 4aba895

Please sign in to comment.