]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Silence unused parameter warning 11412/head
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 22 Dec 2020 22:18:55 +0000 (17:18 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Tue, 22 Dec 2020 22:18:55 +0000 (17:18 -0500)
include/deal.II/base/utilities.h

index c0046ae2d1399078a36b372d4a0172e19d6f7152..84428a1f398cd2dd2cdddb6cf348985164b4807f 100644 (file)
@@ -1194,6 +1194,7 @@ namespace Utilities
     if (std::is_trivially_copyable<T>() && sizeof(T) < 256)
 #endif
       {
+        (void)allow_compression;
         const std::size_t previous_size = dest_buffer.size();
         dest_buffer.resize(previous_size + sizeof(T));
 
@@ -1255,6 +1256,7 @@ namespace Utilities
     if (std::is_trivially_copyable<T>() && sizeof(T) < 256)
 #endif
       {
+        (void)allow_compression;
         Assert(std::distance(cbegin, cend) == sizeof(T), ExcInternalError());
         std::memcpy(&object, &*cbegin, sizeof(T));
       }

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.