2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-21 17:12:22 +00:00

Improve unused variable warning supperssion with multi-compiler friendly code.

[SVN r20466]
This commit is contained in:
Rene Rivera
2003-10-24 01:19:16 +00:00
parent 95b95d012c
commit 2b9d29a0fc

View File

@@ -35,6 +35,7 @@ namespace boost {
namespace
{
enum edge_cast_t { edge_cast = 8010 };
template <class T> inline void unused_variable(const T&) { }
}
// Install properties
@@ -215,7 +216,7 @@ namespace
vertex_t v = add_vertex(full_graph().topology());
vertex_t v2 = add_vertex(up_graph().topology());
(void)v2; // prevent unused var warning on non-debug compile
unused_variable(v2);
assert(v == v2);
return type_index().insert(p, boost::make_tuple(type, v, dynamic_id_function(0)));
}