From 0e86a5a6667ede6a1eec4f8deaf22ee40e549bf4 Mon Sep 17 00:00:00 2001 From: niXman Date: Tue, 19 May 2015 10:38:34 +0300 Subject: [PATCH] suppress the warns about the unused vars --- include/sqlpp11/column.h | 2 +- include/sqlpp11/detail/pick_arg.h | 4 ++-- include/sqlpp11/insert.h | 2 +- include/sqlpp11/insert_value_list.h | 2 +- include/sqlpp11/interpretable_list.h | 2 +- include/sqlpp11/no_data.h | 2 +- include/sqlpp11/select.h | 2 +- include/sqlpp11/select_column_list.h | 2 +- include/sqlpp11/simple_column.h | 2 +- include/sqlpp11/table.h | 2 +- include/sqlpp11/update.h | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/include/sqlpp11/column.h b/include/sqlpp11/column.h index bb0dd740..fdf23431 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& /* t */, Context& context) { context << name_of::char_ptr() << '.' << name_of::char_ptr(); return context; diff --git a/include/sqlpp11/detail/pick_arg.h b/include/sqlpp11/detail/pick_arg.h index 12a7a9c6..ac74b2eb 100644 --- a/include/sqlpp11/detail/pick_arg.h +++ b/include/sqlpp11/detail/pick_arg.h @@ -34,13 +34,13 @@ namespace sqlpp namespace detail { template - 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::_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; } diff --git a/include/sqlpp11/insert.h b/include/sqlpp11/insert.h index e639be61..84d13ed5 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& /* t */, Context& context) { context << "INSERT "; diff --git a/include/sqlpp11/insert_value_list.h b/include/sqlpp11/insert_value_list.h index de3b560c..cbbedc05 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& /* t */, Context& context) { context << " DEFAULT VALUES"; return context; diff --git a/include/sqlpp11/interpretable_list.h b/include/sqlpp11/interpretable_list.h index 8a5d1ea2..5b42fe8d 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& /* t */, const Separator& /* separator */, Context& context) { return context; } diff --git a/include/sqlpp11/no_data.h b/include/sqlpp11/no_data.h index f90f4377..1fa836c6 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& /* t */, Context& context) { return context; } diff --git a/include/sqlpp11/select.h b/include/sqlpp11/select.h index 6fe57fd1..129accf1 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& /* t */, Context& context) { context << "SELECT "; diff --git a/include/sqlpp11/select_column_list.h b/include/sqlpp11/select_column_list.h index 0a5b5e74..b89be478 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& /* t */, Context& context) { return context; } diff --git a/include/sqlpp11/simple_column.h b/include/sqlpp11/simple_column.h index c5442a61..b2bc8fc9 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& /* t */, Context& context) { context << name_of::char_ptr(); return context; diff --git a/include/sqlpp11/table.h b/include/sqlpp11/table.h index 9c19da4b..bf8ed275 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& /* t */, Context& context) { context << name_of::char_ptr(); return context; diff --git a/include/sqlpp11/update.h b/include/sqlpp11/update.h index 1f3019f9..7bb998c0 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& /* t */, Context& context) { context << "UPDATE ";