Update googletest#374
Merged
SRombauts merged 1 commit intoSRombauts:masterfrom Oct 21, 2022
Merged
Conversation
Owner
|
Thanks! |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi,
I have just tried to build this project with
cmake -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON .However I met errors like below
└─[0] <> make [ 3%] Building C object sqlite3/CMakeFiles/sqlite3.dir/sqlite3.c.o [ 6%] Linking C static library libsqlite3.a [ 6%] Built target sqlite3 [ 10%] Building CXX object CMakeFiles/SQLiteCpp.dir/src/Backup.cpp.o [ 13%] Building CXX object CMakeFiles/SQLiteCpp.dir/src/Column.cpp.o [ 16%] Building CXX object CMakeFiles/SQLiteCpp.dir/src/Database.cpp.o [ 20%] Building CXX object CMakeFiles/SQLiteCpp.dir/src/Exception.cpp.o [ 23%] Building CXX object CMakeFiles/SQLiteCpp.dir/src/Savepoint.cpp.o [ 26%] Building CXX object CMakeFiles/SQLiteCpp.dir/src/Statement.cpp.o [ 30%] Building CXX object CMakeFiles/SQLiteCpp.dir/src/Transaction.cpp.o [ 33%] Linking CXX static library libSQLiteCpp.a [ 33%] Built target SQLiteCpp [ 33%] Built target SQLiteCpp_cpplint [ 36%] Building CXX object CMakeFiles/SQLiteCpp_example1.dir/examples/example1/main.cpp.o [ 40%] Linking CXX executable SQLiteCpp_example1 [ 40%] Built target SQLiteCpp_example1 [ 43%] Building CXX object googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o In file included from /home/long/working/SQL-learning/Ex_Files_SQL_EssT/SQLiteCpp/googletest/googletest/src/gtest-all.cc:42: /home/long/working/SQL-learning/Ex_Files_SQL_EssT/SQLiteCpp/googletest/googletest/src/gtest-death-test.cc: In function ‘bool testing::internal::StackGrowsDown()’: /home/long/working/SQL-learning/Ex_Files_SQL_EssT/SQLiteCpp/googletest/googletest/src/gtest-death-test.cc:1301:24: error: ‘dummy’ may be used uninitialized [-Werror=maybe-uninitialized] 1301 | StackLowerThanAddress(&dummy, &result); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /home/long/working/SQL-learning/Ex_Files_SQL_EssT/SQLiteCpp/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/long/working/SQL-learning/Ex_Files_SQL_EssT/SQLiteCpp/googletest/googletest/src/gtest-death-test.cc:1299:7: note: ‘dummy’ declared here 1299 | int dummy; | ^~~~~ cc1plus: all warnings being treated as errors make[2]: *** [googletest/googletest/CMakeFiles/gtest.dir/build.make:76: googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:347: googletest/googletest/CMakeFiles/gtest.dir/all] Error 2 make: *** [Makefile:146: all] Error 2I saw that is fixed in newest googletest. therefore I updated the googletest submodule.
tag's info : v1.12.1