File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2020 CXXFLAGS=-std=c++17 ./configure
2121 make
2222 sudo make install
23- - run : g++ -std=c++17 -o test/pqxx test/pqxx_test.cpp -lpqxx -lpq
23+ - run : g++ -std=c++17 -Wall -Wextra -Werror - o test/pqxx test/pqxx_test.cpp -lpqxx -lpq
2424 - run : test/pqxx
Original file line number Diff line number Diff line change @@ -72,6 +72,6 @@ To get started with development:
7272git clone https://github.com/pgvector/pgvector-cpp.git
7373cd pgvector-cpp
7474createdb pgvector_cpp_test
75- g++ -std=c++17 -o test/pqxx test/pqxx_test.cpp -lpqxx -lpq
75+ g++ -std=c++17 -Wall -Wextra -Werror - o test/pqxx test/pqxx_test.cpp -lpqxx -lpq
7676test/pqxx
7777```
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class Vector {
3030
3131 friend std::ostream &operator <<(std::ostream &os, const Vector &value) {
3232 os << " [" ;
33- for (auto i = 0 ; i < value.value_ .size (); i++) {
33+ for (size_t i = 0 ; i < value.value_ .size (); i++) {
3434 if (i > 0 ) {
3535 os << " ," ;
3636 }
You can’t perform that action at this time.
0 commit comments