]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid warning about unused ScopedLock for DEAL_II_WITH_THREADS=OFF 5488/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 17 Nov 2017 13:20:41 +0000 (14:20 +0100)
committerDaniel Arndt <d.arndt@math.uni-goettingen.de>
Fri, 17 Nov 2017 13:27:51 +0000 (14:27 +0100)
include/deal.II/base/thread_management.h

index 0db3bbbc999c28cdf924c64d30053d84bd687652..10a52eb38cdbbaead4abca9fb00b941f8372a455 100644 (file)
@@ -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 () {};
     };
 
     /**

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.