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

Update googletest #374

Merged
merged 1 commit into from
Oct 21, 2022
Merged

Update googletest #374

merged 1 commit into from
Oct 21, 2022

Conversation

vuhailongkl97
Copy link
Contributor

@vuhailongkl97 vuhailongkl97 commented Oct 21, 2022

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 2

I saw that is fixed in newest googletest. therefore I updated the googletest submodule.

tag's info : v1.12.1

@SRombauts SRombauts self-assigned this Oct 21, 2022
@SRombauts SRombauts merged commit e744032 into SRombauts:master Oct 21, 2022
@SRombauts
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants