From 59d090d0406a660a400dc84fd040572cc8d73c22 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 17 Nov 2017 14:20:41 +0100 Subject: [PATCH] Avoid warning about unused ScopedLock for DEAL_II_WITH_THREADS=OFF --- include/deal.II/base/thread_management.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/deal.II/base/thread_management.h b/include/deal.II/base/thread_management.h index 0db3bbbc99..10a52eb38c 100644 --- a/include/deal.II/base/thread_management.h +++ b/include/deal.II/base/thread_management.h @@ -102,9 +102,10 @@ namespace Threads /** * Destructor. Unlock the mutex. Since this is a dummy mutex class, this - * of course does nothing. + * of course does nothing. We still don't declare it as 'default' to avoid + * warnings about objects of this class being unused. */ - ~ScopedLock () = default; + ~ScopedLock () {}; }; /** -- 2.39.5