Fixed warnings about unused parameters

This commit is contained in:
rbock
2015-05-30 16:19:23 +02:00
parent 1ef7f0a847
commit 8d356f55ce
24 changed files with 30 additions and 30 deletions

View File

@@ -46,7 +46,7 @@ namespace sqlpp
};
template<typename Table>
auto all_of(Table t) -> all_of_t<Table>
auto all_of(Table) -> all_of_t<Table>
{
return {};
}
@@ -68,7 +68,7 @@ namespace sqlpp
using _serialize_check = assert_no_stand_alone_all_of_t;
using T = all_of_t<Table>;
static Context& _(const T& t, const Context&)
static Context& _(const T&, const Context&)
{
_serialize_check::_();
}

View File

@@ -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&, Context& context)
{
context << name_of<typename T::_table>::char_ptr() << '.' << name_of<T>::char_ptr();
return context;

View File

@@ -87,7 +87,7 @@ namespace sqlpp
struct cte_ref_t;
template<typename AliasProvider, typename Statement, typename... FieldSpecs>
auto from_table(cte_t<AliasProvider, Statement, FieldSpecs...> t) -> cte_ref_t<AliasProvider>
auto from_table(cte_t<AliasProvider, Statement, FieldSpecs...>) -> cte_ref_t<AliasProvider>
{
return cte_ref_t<AliasProvider>{};
}
@@ -242,7 +242,7 @@ namespace sqlpp
using _serialize_check = consistent_t;
using T = cte_ref_t<AliasProvider>;
static Context& _(const T& t, Context& context)
static Context& _(const T&, Context& context)
{
context << name_of<T>::char_ptr();
return context;

View File

@@ -45,7 +45,7 @@ namespace sqlpp
using _serialize_check = consistent_t;
using Operand = default_value_t;
static Context& _(const Operand& t, Context& context)
static Context& _(const Operand&, Context& context)
{
context << "DEFAULT";
return context;

View File

@@ -164,7 +164,7 @@ namespace sqlpp
using _serialize_check = serialize_check_of<Context, Tables...>;
using T = extra_tables_data_t<Database, Tables...>;
static Context& _(const T& t, Context& context)
static Context& _(const T&, Context& context)
{
return context;
}

View File

@@ -50,7 +50,7 @@ namespace sqlpp
using _serialize_check = consistent_t;
using T = hidden_t<Part>;
static Context& _(const T& t, Context& context)
static Context& _(const T&, Context& context)
{
return context;
}

View File

@@ -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&, Context& context)
{
context << "INSERT ";

View File

@@ -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&, Context& context)
{
context << " DEFAULT VALUES";
return context;

View File

@@ -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&, const Separator& /* separator */, Context& context)
{
return context;
}

View File

@@ -34,7 +34,7 @@ namespace sqlpp
template<typename Context, typename T, typename Enable = void>
struct interpreter_t
{
static void _(const T& t, Context& context)
static void _(const T&, Context&)
{
static_assert(wrong_t<interpreter_t>::value, "missing interpreter specialization");
}

View File

@@ -106,7 +106,7 @@ namespace sqlpp
using _serialize_check = serialize_check_of<Context, Columns...>;
using T = multi_column_t<void, Columns...>;
static void _(const T& t, Context& context)
static void _(const T&, Context&)
{
static_assert(wrong_t<serializer_t>::value, "multi_column must be used with an alias");
}

View File

@@ -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&, Context& context)
{
return context;
}

View File

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

View File

@@ -43,7 +43,7 @@ namespace sqlpp
using _serialize_check = consistent_t;
using Operand = null_t;
static Context& _(const Operand& t, Context& context)
static Context& _(const Operand&, Context& context)
{
context << "NULL";
return context;

View File

@@ -61,7 +61,7 @@ namespace sqlpp
using _serialize_check = consistent_t;
using T = parameter_t<ValueType, NameType>;
static Context& _(const T& t, Context& context)
static Context& _(const T&, Context& context)
{
context << "?";
return context;

View File

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

View File

@@ -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&, Context& context)
{
context << "SELECT ";

View File

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

View File

@@ -47,7 +47,7 @@ namespace sqlpp
{
using _serialize_check = assert_serializer_specialization_t;
static void _(const T& t, Context& context)
static void _(const T&, Context&)
{
_serialize_check::_();
}

View File

@@ -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&, Context& context)
{
context << name_of<typename T::_column_t>::char_ptr();
return context;

View File

@@ -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&, Context& context)
{
context << name_of<T>::char_ptr();
return context;

View File

@@ -73,7 +73,7 @@ namespace sqlpp
using _serialize_check = assert_tvin_with_correct_operator_t;
using T = tvin_arg_t<Operand>;
static Context& _(const T& t, Context& context)
static Context& _(const T&, Context&)
{
_serialize_check::_();
}

View File

@@ -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&, Context& context)
{
context << "UPDATE ";