From 4253094878e0c8053b746d8f8ccaf9e5f86fa95d Mon Sep 17 00:00:00 2001 From: niXman Date: Mon, 18 May 2015 19:44:53 +0300 Subject: [PATCH] suppress the warns about the unused vars --- include/sqlpp11/column.h | 1 + include/sqlpp11/detail/pick_arg.h | 2 ++ include/sqlpp11/insert.h | 1 + include/sqlpp11/insert_value_list.h | 1 + include/sqlpp11/interpretable_list.h | 2 ++ include/sqlpp11/no_data.h | 1 + include/sqlpp11/select.h | 1 + include/sqlpp11/select_column_list.h | 1 + include/sqlpp11/simple_column.h | 1 + include/sqlpp11/table.h | 1 + include/sqlpp11/update.h | 1 + 11 files changed, 13 insertions(+) diff --git a/include/sqlpp11/column.h b/include/sqlpp11/column.h index bb0dd740..99e74b41 100644 --- a/include/sqlpp11/column.h +++ b/include/sqlpp11/column.h @@ -114,6 +114,7 @@ namespace sqlpp static Context& _(const T& t, Context& context) { + (void)t; 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..ad2f92d0 100644 --- a/include/sqlpp11/detail/pick_arg.h +++ b/include/sqlpp11/detail/pick_arg.h @@ -36,12 +36,14 @@ namespace sqlpp template typename Target::_data_t pick_arg_impl(Statement statement, Term term, const std::true_type&) { + (void)statement; return term; } template typename Target::_data_t pick_arg_impl(Statement statement, Term term, const std::false_type&) { + (void)term; return Target::_get_member(statement)._data; } diff --git a/include/sqlpp11/insert.h b/include/sqlpp11/insert.h index e639be61..bffc99bf 100644 --- a/include/sqlpp11/insert.h +++ b/include/sqlpp11/insert.h @@ -95,6 +95,7 @@ namespace sqlpp static Context& _(const T& t, Context& context) { + (void)t; context << "INSERT "; return context; diff --git a/include/sqlpp11/insert_value_list.h b/include/sqlpp11/insert_value_list.h index de3b560c..628853a1 100644 --- a/include/sqlpp11/insert_value_list.h +++ b/include/sqlpp11/insert_value_list.h @@ -447,6 +447,7 @@ namespace sqlpp static Context& _(const T& t, Context& context) { + (void)t; context << " DEFAULT VALUES"; return context; } diff --git a/include/sqlpp11/interpretable_list.h b/include/sqlpp11/interpretable_list.h index 8a5d1ea2..91d6aebb 100644 --- a/include/sqlpp11/interpretable_list.h +++ b/include/sqlpp11/interpretable_list.h @@ -100,6 +100,8 @@ namespace sqlpp template static Context& _(const T& t, const Separator& separator, Context& context) { + (void)t; + (void)separator; return context; } }; diff --git a/include/sqlpp11/no_data.h b/include/sqlpp11/no_data.h index f90f4377..5b636c0a 100644 --- a/include/sqlpp11/no_data.h +++ b/include/sqlpp11/no_data.h @@ -42,6 +42,7 @@ namespace sqlpp static Context& _(const T& t, Context& context) { + (void)t; return context; } }; diff --git a/include/sqlpp11/select.h b/include/sqlpp11/select.h index 6fe57fd1..f82465e4 100644 --- a/include/sqlpp11/select.h +++ b/include/sqlpp11/select.h @@ -62,6 +62,7 @@ namespace sqlpp static Context& _(const T& t, Context& context) { + (void)t; context << "SELECT "; return context; diff --git a/include/sqlpp11/select_column_list.h b/include/sqlpp11/select_column_list.h index 0a5b5e74..641c099c 100644 --- a/include/sqlpp11/select_column_list.h +++ b/include/sqlpp11/select_column_list.h @@ -121,6 +121,7 @@ namespace sqlpp static Context& _(const T& t, Context& context) { + (void)t; return context; } }; diff --git a/include/sqlpp11/simple_column.h b/include/sqlpp11/simple_column.h index c5442a61..69159fb2 100644 --- a/include/sqlpp11/simple_column.h +++ b/include/sqlpp11/simple_column.h @@ -50,6 +50,7 @@ namespace sqlpp static Context& _(const T& t, Context& context) { + (void)t; context << name_of::char_ptr(); return context; } diff --git a/include/sqlpp11/table.h b/include/sqlpp11/table.h index 9c19da4b..f630dd82 100644 --- a/include/sqlpp11/table.h +++ b/include/sqlpp11/table.h @@ -107,6 +107,7 @@ namespace sqlpp static Context& _(const T& t, Context& context) { + (void)t; context << name_of::char_ptr(); return context; } diff --git a/include/sqlpp11/update.h b/include/sqlpp11/update.h index 1f3019f9..652f5a0a 100644 --- a/include/sqlpp11/update.h +++ b/include/sqlpp11/update.h @@ -96,6 +96,7 @@ namespace sqlpp static Context& _(const T& t, Context& context) { + (void)t; context << "UPDATE "; return context;