diff --git a/include/sqlpp11/all_of.h b/include/sqlpp11/all_of.h index 55e2c206..999344d3 100644 --- a/include/sqlpp11/all_of.h +++ b/include/sqlpp11/all_of.h @@ -46,7 +46,7 @@ namespace sqlpp }; template - auto all_of(Table t) -> all_of_t + auto all_of(Table) -> all_of_t
{ return {}; } @@ -68,7 +68,7 @@ namespace sqlpp using _serialize_check = assert_no_stand_alone_all_of_t; using T = all_of_t
; - static Context& _(const T& t, const Context&) + static Context& _(const T&, const Context&) { _serialize_check::_(); } diff --git a/include/sqlpp11/column.h b/include/sqlpp11/column.h index fdf23431..de7b23b3 100644 --- a/include/sqlpp11/column.h +++ b/include/sqlpp11/column.h @@ -112,7 +112,7 @@ namespace sqlpp using _serialize_check = consistent_t; using T = column_t; - static Context& _(const T& /* t */, Context& context) + static Context& _(const T&, Context& context) { context << name_of::char_ptr() << '.' << name_of::char_ptr(); return context; diff --git a/include/sqlpp11/cte.h b/include/sqlpp11/cte.h index 85105317..51adff9a 100644 --- a/include/sqlpp11/cte.h +++ b/include/sqlpp11/cte.h @@ -87,7 +87,7 @@ namespace sqlpp struct cte_ref_t; template - auto from_table(cte_t t) -> cte_ref_t + auto from_table(cte_t) -> cte_ref_t { return cte_ref_t{}; } @@ -242,7 +242,7 @@ namespace sqlpp using _serialize_check = consistent_t; using T = cte_ref_t; - static Context& _(const T& t, Context& context) + static Context& _(const T&, Context& context) { context << name_of::char_ptr(); return context; diff --git a/include/sqlpp11/default_value.h b/include/sqlpp11/default_value.h index 1a71442a..27494531 100644 --- a/include/sqlpp11/default_value.h +++ b/include/sqlpp11/default_value.h @@ -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; diff --git a/include/sqlpp11/extra_tables.h b/include/sqlpp11/extra_tables.h index 3a60e5f6..785964b1 100644 --- a/include/sqlpp11/extra_tables.h +++ b/include/sqlpp11/extra_tables.h @@ -164,7 +164,7 @@ namespace sqlpp using _serialize_check = serialize_check_of; using T = extra_tables_data_t; - static Context& _(const T& t, Context& context) + static Context& _(const T&, Context& context) { return context; } diff --git a/include/sqlpp11/hidden.h b/include/sqlpp11/hidden.h index 313ae6b8..94cc66ae 100644 --- a/include/sqlpp11/hidden.h +++ b/include/sqlpp11/hidden.h @@ -50,7 +50,7 @@ namespace sqlpp using _serialize_check = consistent_t; using T = hidden_t; - static Context& _(const T& t, Context& context) + static Context& _(const T&, Context& context) { return context; } diff --git a/include/sqlpp11/insert.h b/include/sqlpp11/insert.h index 84d13ed5..7b578c7f 100644 --- a/include/sqlpp11/insert.h +++ b/include/sqlpp11/insert.h @@ -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 "; diff --git a/include/sqlpp11/insert_value_list.h b/include/sqlpp11/insert_value_list.h index cbbedc05..bf060902 100644 --- a/include/sqlpp11/insert_value_list.h +++ b/include/sqlpp11/insert_value_list.h @@ -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; diff --git a/include/sqlpp11/interpretable_list.h b/include/sqlpp11/interpretable_list.h index 5b42fe8d..face27b9 100644 --- a/include/sqlpp11/interpretable_list.h +++ b/include/sqlpp11/interpretable_list.h @@ -98,7 +98,7 @@ namespace sqlpp using T = interpretable_list_t; template - static Context& _(const T& /* t */, const Separator& /* separator */, Context& context) + static Context& _(const T&, const Separator& /* separator */, Context& context) { return context; } diff --git a/include/sqlpp11/interpreter.h b/include/sqlpp11/interpreter.h index 2560bd17..ace659c5 100644 --- a/include/sqlpp11/interpreter.h +++ b/include/sqlpp11/interpreter.h @@ -34,7 +34,7 @@ namespace sqlpp template struct interpreter_t { - static void _(const T& t, Context& context) + static void _(const T&, Context&) { static_assert(wrong_t::value, "missing interpreter specialization"); } diff --git a/include/sqlpp11/multi_column.h b/include/sqlpp11/multi_column.h index 8147d3c2..7e55cc97 100644 --- a/include/sqlpp11/multi_column.h +++ b/include/sqlpp11/multi_column.h @@ -106,7 +106,7 @@ namespace sqlpp using _serialize_check = serialize_check_of; using T = multi_column_t; - static void _(const T& t, Context& context) + static void _(const T&, Context&) { static_assert(wrong_t::value, "multi_column must be used with an alias"); } diff --git a/include/sqlpp11/no_data.h b/include/sqlpp11/no_data.h index 1fa836c6..629e7705 100644 --- a/include/sqlpp11/no_data.h +++ b/include/sqlpp11/no_data.h @@ -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; } diff --git a/include/sqlpp11/noop.h b/include/sqlpp11/noop.h index 0c4c0f57..83e91cc1 100644 --- a/include/sqlpp11/noop.h +++ b/include/sqlpp11/noop.h @@ -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; } diff --git a/include/sqlpp11/null.h b/include/sqlpp11/null.h index 9b01b69e..3331897f 100644 --- a/include/sqlpp11/null.h +++ b/include/sqlpp11/null.h @@ -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; diff --git a/include/sqlpp11/parameter.h b/include/sqlpp11/parameter.h index 13447233..87e4ae9b 100644 --- a/include/sqlpp11/parameter.h +++ b/include/sqlpp11/parameter.h @@ -61,7 +61,7 @@ namespace sqlpp using _serialize_check = consistent_t; using T = parameter_t; - static Context& _(const T& t, Context& context) + static Context& _(const T&, Context& context) { context << "?"; return context; diff --git a/include/sqlpp11/remove.h b/include/sqlpp11/remove.h index bb43da68..67e472ee 100644 --- a/include/sqlpp11/remove.h +++ b/include/sqlpp11/remove.h @@ -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"; diff --git a/include/sqlpp11/select.h b/include/sqlpp11/select.h index 129accf1..de351fd5 100644 --- a/include/sqlpp11/select.h +++ b/include/sqlpp11/select.h @@ -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 "; diff --git a/include/sqlpp11/select_column_list.h b/include/sqlpp11/select_column_list.h index b89be478..3437f078 100644 --- a/include/sqlpp11/select_column_list.h +++ b/include/sqlpp11/select_column_list.h @@ -119,7 +119,7 @@ namespace sqlpp { using T = dynamic_select_column_list; - static Context& _(const T& /* t */, Context& context) + static Context& _(const T&, Context& context) { return context; } diff --git a/include/sqlpp11/serializer.h b/include/sqlpp11/serializer.h index 61974558..2fc59570 100644 --- a/include/sqlpp11/serializer.h +++ b/include/sqlpp11/serializer.h @@ -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::_(); } diff --git a/include/sqlpp11/simple_column.h b/include/sqlpp11/simple_column.h index b2bc8fc9..c1beef53 100644 --- a/include/sqlpp11/simple_column.h +++ b/include/sqlpp11/simple_column.h @@ -48,7 +48,7 @@ namespace sqlpp using _serialize_check = serialize_check_of; using T = simple_column_t; - static Context& _(const T& /* t */, Context& context) + static Context& _(const T&, Context& context) { context << name_of::char_ptr(); return context; diff --git a/include/sqlpp11/table.h b/include/sqlpp11/table.h index bf8ed275..26b14e0c 100644 --- a/include/sqlpp11/table.h +++ b/include/sqlpp11/table.h @@ -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::char_ptr(); return context; diff --git a/include/sqlpp11/tvin.h b/include/sqlpp11/tvin.h index 9c4b3c1a..da1bf993 100644 --- a/include/sqlpp11/tvin.h +++ b/include/sqlpp11/tvin.h @@ -73,7 +73,7 @@ namespace sqlpp using _serialize_check = assert_tvin_with_correct_operator_t; using T = tvin_arg_t; - static Context& _(const T& t, Context& context) + static Context& _(const T&, Context&) { _serialize_check::_(); } diff --git a/include/sqlpp11/update.h b/include/sqlpp11/update.h index 7bb998c0..c5f858c7 100644 --- a/include/sqlpp11/update.h +++ b/include/sqlpp11/update.h @@ -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 "; diff --git a/tests/MockDb.h b/tests/MockDb.h index 1fddd94f..4dc2de2a 100644 --- a/tests/MockDb.h +++ b/tests/MockDb.h @@ -95,7 +95,7 @@ struct MockDbT: public sqlpp::connection class result_t { public: - constexpr bool operator==(const result_t& rhs) const + constexpr bool operator==(const result_t&) const { return true; } @@ -127,7 +127,7 @@ struct MockDbT: public sqlpp::connection return _run(t, _ok{}); } - size_t execute(const std::string& command) + size_t execute(const std::string&) { return 0; } @@ -220,13 +220,13 @@ struct MockDbT: public sqlpp::connection } template - size_t run_prepared_execute(const PreparedExecute& x) + size_t run_prepared_execute(const PreparedExecute&) { return 0; } template - size_t run_prepared_insert(const PreparedInsert& x) + size_t run_prepared_insert(const PreparedInsert&) { return 0; } @@ -241,7 +241,7 @@ struct MockDbT: public sqlpp::connection } template - result_t run_prepared_select(PreparedSelect& x) + result_t run_prepared_select(PreparedSelect&) { return {}; }