From: Martin Kronbichler Date: Sat, 4 Mar 2017 06:24:46 +0000 (+0100) Subject: Avoid compiler warning without threads X-Git-Tag: v8.5.0-rc1~75^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd224a508c5c0967e00db22afbce4709c721f045;p=dealii.git Avoid compiler warning without threads --- diff --git a/include/deal.II/lac/vector_operations_internal.h b/include/deal.II/lac/vector_operations_internal.h index 2947443272..52596a4fc5 100644 --- a/include/deal.II/lac/vector_operations_internal.h +++ b/include/deal.II/lac/vector_operations_internal.h @@ -162,8 +162,8 @@ namespace internal std_cxx11::shared_ptr &partitioner, size_type start = 0) { - size_type vec_size = end-start; #ifdef DEAL_II_WITH_THREADS + size_type vec_size = end-start; // only go to the parallel function in case there are at least 4 parallel // items, otherwise the overhead is too large if (vec_size >= 4*internal::Vector::minimum_parallel_grain_size &&