0
0
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:
Roland Bock 2015-05-19 09:45:21 +02:00
commit fad66ac33f
11 changed files with 12 additions and 12 deletions

View File

@ -112,7 +112,7 @@ namespace sqlpp
using _serialize_check = consistent_t; using _serialize_check = consistent_t;
using T = column_t<Args...>; 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(); context << name_of<typename T::_table>::char_ptr() << '.' << name_of<T>::char_ptr();
return context; return context;

View File

@ -34,13 +34,13 @@ namespace sqlpp
namespace detail namespace detail
{ {
template<typename Target, typename Statement, typename Term> 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; return term;
} }
template<typename Target, typename Statement, typename 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; return Target::_get_member(statement)._data;
} }

View File

@ -93,7 +93,7 @@ namespace sqlpp
using _serialize_check = consistent_t; using _serialize_check = consistent_t;
using T = insert_name_t; using T = insert_name_t;
static Context& _(const T& t, Context& context) static Context& _(const T& /* t */, Context& context)
{ {
context << "INSERT "; context << "INSERT ";

View File

@ -445,7 +445,7 @@ namespace sqlpp
using _serialize_check = consistent_t; using _serialize_check = consistent_t;
using T = insert_default_values_data_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"; context << " DEFAULT VALUES";
return context; return context;

View File

@ -98,7 +98,7 @@ namespace sqlpp
using T = interpretable_list_t<void>; using T = interpretable_list_t<void>;
template<typename Separator> 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; return context;
} }

View File

@ -40,7 +40,7 @@ namespace sqlpp
using _serialize_check = consistent_t; using _serialize_check = consistent_t;
using T = no_data_t; using T = no_data_t;
static Context& _(const T& t, Context& context) static Context& _(const T& /* t */, Context& context)
{ {
return context; return context;
} }

View File

@ -60,7 +60,7 @@ namespace sqlpp
using _serialize_check = consistent_t; using _serialize_check = consistent_t;
using T = select_name_t; using T = select_name_t;
static Context& _(const T& t, Context& context) static Context& _(const T& /* t */, Context& context)
{ {
context << "SELECT "; context << "SELECT ";

View File

@ -119,7 +119,7 @@ namespace sqlpp
{ {
using T = dynamic_select_column_list<void>; using T = dynamic_select_column_list<void>;
static Context& _(const T& t, Context& context) static Context& _(const T& /* t */, Context& context)
{ {
return context; return context;
} }

View File

@ -48,7 +48,7 @@ namespace sqlpp
using _serialize_check = serialize_check_of<Context, Column>; using _serialize_check = serialize_check_of<Context, Column>;
using T = simple_column_t<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(); context << name_of<typename T::_column_t>::char_ptr();
return context; return context;

View File

@ -105,7 +105,7 @@ namespace sqlpp
using _serialize_check = consistent_t; using _serialize_check = consistent_t;
using T = X; using T = X;
static Context& _(const T& t, Context& context) static Context& _(const T& /* t */, Context& context)
{ {
context << name_of<T>::char_ptr(); context << name_of<T>::char_ptr();
return context; return context;

View File

@ -94,7 +94,7 @@ namespace sqlpp
using _serialize_check = consistent_t; using _serialize_check = consistent_t;
using T = update_name_t; using T = update_name_t;
static Context& _(const T& t, Context& context) static Context& _(const T& /* t */, Context& context)
{ {
context << "UPDATE "; context << "UPDATE ";