From: Daniel Arndt Date: Wed, 23 May 2018 08:01:27 +0000 (+0200) Subject: Fix warning for unused variables in CXX17 mode X-Git-Tag: v9.1.0-rc1~1110^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=094d5de0e1065eba5f5c64963f76ff15ac7d710b;p=dealii.git Fix warning for unused variables in CXX17 mode --- diff --git a/include/deal.II/base/utilities.h b/include/deal.II/base/utilities.h index 0fe8d5775c..df51362f3c 100644 --- a/include/deal.II/base/utilities.h +++ b/include/deal.II/base/utilities.h @@ -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;