Skip to content

Commit 3fb513c

Browse files
committed
Making Travis Happy
warnings are errors and unused vars are warnings, thats pedantic for tests...
1 parent f0c335d commit 3fb513c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/prepared_statment.cc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ int main() {
5252
db << "select ?,?" << 1 << 1 >> test;
5353
db << "select ?,?" << test << test >> test;
5454

55-
db << "select ?" << test >> [](int t) {}; // rVal
56-
db << "select ?,?" << test << 1 >> [](int t, int p) {};
57-
db << "select ?,?" << 1 << test >> [](int t, int p) {};
58-
db << "select ?,?" << 1 << 1 >> [](int t, int p) {};
59-
db << "select ?,?" << test << test >> [](int t, int p) {};
55+
int q = 0;
56+
57+
db << "select ?" << test >> [&](int t) { q = t++; }; // rVal
58+
db << "select ?,?" << test << 1 >> [&](int t, int p) { q = t + p; };
59+
db << "select ?,?" << 1 << test >> [&](int t, int p) { q = t + p; };
60+
db << "select ?,?" << 1 << 1 >> [&](int t, int p) { q = t + p; };
61+
db << "select ?,?" << test << test >> [&](int t, int p) { q = t + p; };
6062

6163
db << "select ?,?,?" << test << 1 << test; // mix
6264
db << "select ?,?,?" << 1 << test << 1;

0 commit comments

Comments
 (0)