[is_valid] Fix unused variable warnings.

This commit is contained in:
Adam Wulkiewicz
2014-06-22 22:41:42 +02:00
parent 5c69e55834
commit 3deeeecc25
3 changed files with 9 additions and 7 deletions

View File

@@ -46,7 +46,7 @@ struct has_valid_corners
template <typename Box>
struct has_valid_corners<Box, 0>
{
static inline bool apply(Box const& box)
static inline bool apply(Box const& /*box*/)
{
return true;
}

View File

@@ -51,8 +51,8 @@ inline void debug_print_complement_graph(OutputStream& os,
}
#else
template <typename OutputStream, typename Vertex>
void debug_print_complement_graph(OutputStream& os,
complement_graph<Vertex> const& graph)
void debug_print_complement_graph(OutputStream& /*os*/,
complement_graph<Vertex> const& /*graph*/)
{
}
#endif

View File

@@ -24,11 +24,10 @@ namespace boost { namespace geometry
namespace detail { namespace is_valid
{
#ifdef GEOMETRY_TEST_DEBUG
template <typename TurnIterator>
inline void debug_print_turns(TurnIterator first, TurnIterator beyond)
{
#ifdef GEOMETRY_TEST_DEBUG
std::cout << "turns:";
for (TurnIterator tit = first; tit != beyond; ++tit)
{
@@ -51,9 +50,12 @@ inline void debug_print_turns(TurnIterator first, TurnIterator beyond)
<< "]";
}
std::cout << std::endl << std::endl;
#endif // GEOMETRY_TEST_DEBUG
}
#else
template <typename TurnIterator>
inline void debug_print_turns(TurnIterator /*first*/, TurnIterator /*beyond*/)
{}
#endif // GEOMETRY_TEST_DEBUG
}} // namespace detail::is_valid