Commit 2dbe0ce1 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Disable some compilation warnings due to unused variables

parent a2bb7ff8
...@@ -72,7 +72,7 @@ struct find_vertices ...@@ -72,7 +72,7 @@ struct find_vertices
range.second = python::extract<value_type>(prange[1]); range.second = python::extract<value_type>(prange[1]);
#ifdef USING_OPENMP #ifdef USING_OPENMP
size_t nt = omp_get_num_threads(); size_t __attribute__ ((unused)) nt = omp_get_num_threads();
if (is_convertible<value_type,python::object>::value) if (is_convertible<value_type,python::object>::value)
nt = 1; // python is not thread-safe nt = 1; // python is not thread-safe
#endif #endif
...@@ -114,7 +114,7 @@ struct find_edges ...@@ -114,7 +114,7 @@ struct find_edges
tr1::unordered_set<size_t> edge_set; tr1::unordered_set<size_t> edge_set;
#ifdef USING_OPENMP #ifdef USING_OPENMP
size_t nt = omp_get_num_threads(); size_t __attribute__ ((unused)) nt = omp_get_num_threads();
if (is_convertible<value_type,python::object>::value) if (is_convertible<value_type,python::object>::value)
nt = 1; // python is not thread-safe nt = 1; // python is not thread-safe
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment