From d638b62dda7c1b15eacda844a8e39791e073b459 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Wed, 19 Sep 2018 13:27:55 -0700 Subject: [PATCH] Silence compiler warning. --- unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h b/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h index 2130625bc..9687734ff 100644 --- a/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h +++ b/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h @@ -85,8 +85,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { } void SetStealPartitions(const std::vector>& partitions) { - int num_partitions = partitions.size(); - eigen_assert(num_partitions == num_threads_); + eigen_assert(static_cast(partitions.size()) == num_threads_); // Pass this information to each thread queue. for (int i = 0; i < num_threads_; i++) {