Skip to content

Commit 1987708

Browse files
committed
Fixed warning
1 parent b91fc99 commit 1987708

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ jobs:
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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,6 @@ To get started with development:
7272
git clone https://github.com/pgvector/pgvector-cpp.git
7373
cd pgvector-cpp
7474
createdb 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
7676
test/pqxx
7777
```

include/vector.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)