From ac6744fa89f99632c232db2129aedd85994104b0 Mon Sep 17 00:00:00 2001 From: Adam Wulkiewicz Date: Mon, 20 Oct 2014 16:06:41 +0200 Subject: [PATCH] [algorithms] Fix unused parameter warning in throw_on_empty_input() --- .../geometry/algorithms/detail/throw_on_empty_input.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/boost/geometry/algorithms/detail/throw_on_empty_input.hpp b/include/boost/geometry/algorithms/detail/throw_on_empty_input.hpp index 3d83e6930..21f5fe40b 100644 --- a/include/boost/geometry/algorithms/detail/throw_on_empty_input.hpp +++ b/include/boost/geometry/algorithms/detail/throw_on_empty_input.hpp @@ -24,6 +24,10 @@ // So decided that at least for Boost 1.49 this is commented for // scalar results, except distance. +#if defined(BOOST_GEOMETRY_EMPTY_INPUT_NO_THROW) +#include +#endif + namespace boost { namespace geometry { @@ -39,6 +43,8 @@ inline void throw_on_empty_input(Geometry const& geometry) { throw empty_input_exception(); } +#else + boost::ignore_unused(geometry); #endif }