From 93e7b2458b3decb8bff6bdf8620eedd1ad4a6f89 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Sun, 25 Jun 2017 14:05:08 +0300 Subject: [PATCH] Fixed some warnings --- examples/constexpr14_namespace_check.cpp | 7 ++++++- examples/constexpr14_sort_check.cpp | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/examples/constexpr14_namespace_check.cpp b/examples/constexpr14_namespace_check.cpp index 0752e08..98a5e40 100644 --- a/examples/constexpr14_namespace_check.cpp +++ b/examples/constexpr14_namespace_check.cpp @@ -1,4 +1,4 @@ -// Copyright 2013-2016 Antony Polukhin +// Copyright 2013-2017 Antony Polukhin // Distributed under the Boost Software License, Version 1.0. // (See the accompanying file LICENSE_1_0.txt @@ -6,6 +6,10 @@ #include +template +void do_something(const T&) {} + + #if !defined(BOOST_NO_CXX14_CONSTEXPR) && !defined(BOOST_NO_CXX11_CONSTEXPR) // Implementation of this function is not essential for the example template @@ -62,6 +66,7 @@ namespace my_project { // Actual implementation of the serialization goes below // ... + do_something(value); } }; diff --git a/examples/constexpr14_sort_check.cpp b/examples/constexpr14_sort_check.cpp index 5443924..452b98a 100644 --- a/examples/constexpr14_sort_check.cpp +++ b/examples/constexpr14_sort_check.cpp @@ -55,7 +55,7 @@ constexpr bool is_asc_sorted(types) noexcept { // Using the newly created `is_asc_sorted` trait: template -void do_something(const types& t) noexcept { +void do_something(const types& /*value*/) noexcept { static_assert( is_asc_sorted( types() ), "T... for do_something(const types& t) must be sorted ascending"