]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix warning for unused variables in CXX17 mode 6652/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 23 May 2018 08:01:27 +0000 (10:01 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 23 May 2018 08:30:20 +0000 (10:30 +0200)
include/deal.II/base/utilities.h

index 0fe8d5775c4b1aae2b7357fcb8bb3da4f3170ae5..df51362f3c3bf09a3d6dfd57ecc560a4421317a6 100644 (file)
@@ -1034,6 +1034,7 @@ namespace Utilities
 #  endif
 #endif
       {
+        (void) allow_compression;
         const size_t previous_size = dest_buffer.size();
         dest_buffer.resize (previous_size + sizeof(T));
 
@@ -1107,7 +1108,8 @@ namespace Utilities
 #  endif
 #endif
       {
-        Assert (std::distance(cbegin, cend) == sizeof(T), ExcInternalError());
+        (void) allow_compression;
+        Assert(std::distance(cbegin, cend) == sizeof(T), ExcInternalError());
         T object;
         std::memcpy (&object, &*cbegin, sizeof(T));
         return object;

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.