2
0
mirror of https://github.com/boostorg/mysql.git synced 2026-02-14 12:52:17 +00:00

Changes to make code build with g++ release

This commit is contained in:
ruben
2020-01-13 12:34:32 +00:00
parent 17b86aa28e
commit 3636983e4c
8 changed files with 23 additions and 22 deletions

View File

@@ -99,7 +99,7 @@ void main_impl(int argc, char** argv)
result = conn.query("SELECT salary FROM employee WHERE first_name = 'Underpaid'");
auto rows = result.fetch_all();
assert(rows.size() == 1);
auto salary = std::get<double>(rows[0].values()[0]);
[[maybe_unused]] auto salary = std::get<double>(rows[0].values()[0]);
assert(salary == 10000);
}