Fixed some clang warnings

This commit is contained in:
rbock
2017-06-25 13:01:43 +02:00
parent 7422cb9e3b
commit 64498654b7
2 changed files with 6 additions and 4 deletions

View File

@@ -31,11 +31,13 @@
namespace
{
/*
auto getTrue() -> std::string
{
MockDb::_serializer_context_t printer = {};
return serialize(sqlpp::value(true), printer).str();
}
*/
auto getFalse() -> std::string
{
@@ -47,14 +49,14 @@ namespace
int ForUpdate(int, char* [])
{
const auto foo = test::TabFoo{};
const auto bar = test::TabBar{};
// const auto bar = test::TabBar{};
// Unconditionally
compare(__LINE__, select(foo.omega).from(foo).unconditionally().for_update(), "SELECT tab_foo.omega FROM tab_foo FOR UPDATE ");
compare(__LINE__, select(foo.omega).from(foo).unconditionally().for_update(),
"SELECT tab_foo.omega FROM tab_foo FOR UPDATE ");
// Never
compare(__LINE__, where(sqlpp::value(false)), " WHERE " + getFalse());
return 0;
}