mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-05 12:40:40 -06:00
Fixed warnings about unused parameters
This commit is contained in:
@@ -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::_();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 ";
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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 ";
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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::_();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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::_();
|
||||
}
|
||||
|
||||
@@ -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 ";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user