0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 04:47:18 +08:00

suppress the warns about the unused vars

This commit is contained in:
niXman 2015-05-18 19:44:53 +03:00
parent bcc085f819
commit 4253094878
11 changed files with 13 additions and 0 deletions

View File

@ -114,6 +114,7 @@ namespace sqlpp
static Context& _(const T& t, Context& context)
{
(void)t;
context << name_of<typename T::_table>::char_ptr() << '.' << name_of<T>::char_ptr();
return context;
}

View File

@ -36,12 +36,14 @@ namespace sqlpp
template<typename Target, typename Statement, typename Term>
typename Target::_data_t pick_arg_impl(Statement statement, Term term, const std::true_type&)
{
(void)statement;
return term;
}
template<typename Target, typename Statement, typename Term>
typename Target::_data_t pick_arg_impl(Statement statement, Term term, const std::false_type&)
{
(void)term;
return Target::_get_member(statement)._data;
}

View File

@ -95,6 +95,7 @@ namespace sqlpp
static Context& _(const T& t, Context& context)
{
(void)t;
context << "INSERT ";
return context;

View File

@ -447,6 +447,7 @@ namespace sqlpp
static Context& _(const T& t, Context& context)
{
(void)t;
context << " DEFAULT VALUES";
return context;
}

View File

@ -100,6 +100,8 @@ namespace sqlpp
template<typename Separator>
static Context& _(const T& t, const Separator& separator, Context& context)
{
(void)t;
(void)separator;
return context;
}
};

View File

@ -42,6 +42,7 @@ namespace sqlpp
static Context& _(const T& t, Context& context)
{
(void)t;
return context;
}
};

View File

@ -62,6 +62,7 @@ namespace sqlpp
static Context& _(const T& t, Context& context)
{
(void)t;
context << "SELECT ";
return context;

View File

@ -121,6 +121,7 @@ namespace sqlpp
static Context& _(const T& t, Context& context)
{
(void)t;
return context;
}
};

View File

@ -50,6 +50,7 @@ namespace sqlpp
static Context& _(const T& t, Context& context)
{
(void)t;
context << name_of<typename T::_column_t>::char_ptr();
return context;
}

View File

@ -107,6 +107,7 @@ namespace sqlpp
static Context& _(const T& t, Context& context)
{
(void)t;
context << name_of<T>::char_ptr();
return context;
}

View File

@ -96,6 +96,7 @@ namespace sqlpp
static Context& _(const T& t, Context& context)
{
(void)t;
context << "UPDATE ";
return context;