mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-15 20:31:16 +08:00
Merge pull request #39 from niXman/develop
suppress the warns about the unused vars
This commit is contained in:
commit
fad66ac33f
@ -112,7 +112,7 @@ namespace sqlpp
|
||||
using _serialize_check = consistent_t;
|
||||
using T = column_t<Args...>;
|
||||
|
||||
static Context& _(const T& t, Context& context)
|
||||
static Context& _(const T& /* t */, Context& context)
|
||||
{
|
||||
context << name_of<typename T::_table>::char_ptr() << '.' << name_of<T>::char_ptr();
|
||||
return context;
|
||||
|
@ -34,13 +34,13 @@ namespace sqlpp
|
||||
namespace detail
|
||||
{
|
||||
template<typename Target, typename Statement, typename Term>
|
||||
typename Target::_data_t pick_arg_impl(Statement statement, Term term, const std::true_type&)
|
||||
typename Target::_data_t pick_arg_impl(Statement /* statement */, Term term, const std::true_type&)
|
||||
{
|
||||
return term;
|
||||
}
|
||||
|
||||
template<typename Target, typename Statement, typename Term>
|
||||
typename Target::_data_t pick_arg_impl(Statement statement, Term term, const std::false_type&)
|
||||
typename Target::_data_t pick_arg_impl(Statement statement, Term /* term */, const std::false_type&)
|
||||
{
|
||||
return Target::_get_member(statement)._data;
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ namespace sqlpp
|
||||
using _serialize_check = consistent_t;
|
||||
using T = insert_name_t;
|
||||
|
||||
static Context& _(const T& t, Context& context)
|
||||
static Context& _(const T& /* t */, Context& context)
|
||||
{
|
||||
context << "INSERT ";
|
||||
|
||||
|
@ -445,7 +445,7 @@ namespace sqlpp
|
||||
using _serialize_check = consistent_t;
|
||||
using T = insert_default_values_data_t;
|
||||
|
||||
static Context& _(const T& t, Context& context)
|
||||
static Context& _(const T& /* t */, Context& context)
|
||||
{
|
||||
context << " DEFAULT VALUES";
|
||||
return context;
|
||||
|
@ -98,7 +98,7 @@ namespace sqlpp
|
||||
using T = interpretable_list_t<void>;
|
||||
|
||||
template<typename Separator>
|
||||
static Context& _(const T& t, const Separator& separator, Context& context)
|
||||
static Context& _(const T& /* t */, const Separator& /* separator */, Context& context)
|
||||
{
|
||||
return context;
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ namespace sqlpp
|
||||
using _serialize_check = consistent_t;
|
||||
using T = no_data_t;
|
||||
|
||||
static Context& _(const T& t, Context& context)
|
||||
static Context& _(const T& /* t */, Context& context)
|
||||
{
|
||||
return context;
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ namespace sqlpp
|
||||
using _serialize_check = consistent_t;
|
||||
using T = select_name_t;
|
||||
|
||||
static Context& _(const T& t, Context& context)
|
||||
static Context& _(const T& /* t */, Context& context)
|
||||
{
|
||||
context << "SELECT ";
|
||||
|
||||
|
@ -119,7 +119,7 @@ namespace sqlpp
|
||||
{
|
||||
using T = dynamic_select_column_list<void>;
|
||||
|
||||
static Context& _(const T& t, Context& context)
|
||||
static Context& _(const T& /* t */, Context& context)
|
||||
{
|
||||
return context;
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ namespace sqlpp
|
||||
using _serialize_check = serialize_check_of<Context, Column>;
|
||||
using T = simple_column_t<Column>;
|
||||
|
||||
static Context& _(const T& t, Context& context)
|
||||
static Context& _(const T& /* t */, Context& context)
|
||||
{
|
||||
context << name_of<typename T::_column_t>::char_ptr();
|
||||
return context;
|
||||
|
@ -105,7 +105,7 @@ namespace sqlpp
|
||||
using _serialize_check = consistent_t;
|
||||
using T = X;
|
||||
|
||||
static Context& _(const T& t, Context& context)
|
||||
static Context& _(const T& /* t */, Context& context)
|
||||
{
|
||||
context << name_of<T>::char_ptr();
|
||||
return context;
|
||||
|
@ -94,7 +94,7 @@ namespace sqlpp
|
||||
using _serialize_check = consistent_t;
|
||||
using T = update_name_t;
|
||||
|
||||
static Context& _(const T& t, Context& context)
|
||||
static Context& _(const T& /* t */, Context& context)
|
||||
{
|
||||
context << "UPDATE ";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user