mirror of
https://github.com/boostorg/python.git
synced 2026-01-20 16:52:15 +00:00
Improve unused variable warning supperssion with multi-compiler friendly code.
[SVN r20466]
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user