From: Fernando Herrera Date: Mon, 12 Aug 2024 20:49:35 +0000 (-0600) Subject: Make use of [[maybe_unused]] instead of (void) (first 5 occurrences) X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be9b93177b1fa6e9b600337375a203a2d2f3807e;p=dealii.git Make use of [[maybe_unused]] instead of (void) (first 5 occurrences) --- diff --git a/source/grid/tria.cc b/source/grid/tria.cc index fc9273c845..3b42873808 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -669,10 +669,10 @@ namespace internal template DEAL_II_CXX20_REQUIRES((concepts::is_valid_dim_spacedim)) void CellAttachedDataSerializer::save( - const unsigned int global_first_cell, - const unsigned int global_num_cells, - const std::string &file_basename, - const MPI_Comm &mpi_communicator) const + [[maybe_unused]] const unsigned int global_first_cell, + [[maybe_unused]] const unsigned int global_num_cells, + const std::string &file_basename, + [[maybe_unused]] const MPI_Comm &mpi_communicator) const { Assert(sizes_fixed_cumulative.size() > 0, ExcMessage("No data has been packed!")); @@ -848,10 +848,6 @@ namespace internal else #endif { - (void)global_first_cell; - (void)global_num_cells; - (void)mpi_communicator; - // // ---------- Fixed size data ---------- // @@ -900,13 +896,13 @@ namespace internal template DEAL_II_CXX20_REQUIRES((concepts::is_valid_dim_spacedim)) void CellAttachedDataSerializer::load( - const unsigned int global_first_cell, - const unsigned int global_num_cells, - const unsigned int local_num_cells, - const std::string &file_basename, - const unsigned int n_attached_deserialize_fixed, - const unsigned int n_attached_deserialize_variable, - const MPI_Comm &mpi_communicator) + [[maybe_unused]] const unsigned int global_first_cell, + [[maybe_unused]] const unsigned int global_num_cells, + const unsigned int local_num_cells, + const std::string &file_basename, + const unsigned int n_attached_deserialize_fixed, + const unsigned int n_attached_deserialize_variable, + const MPI_Comm &mpi_communicator) { Assert(dest_data_fixed.empty(), ExcMessage("Previously loaded data has not been released yet!")); @@ -1064,8 +1060,6 @@ namespace internal #endif { (void)mpi_communicator; - (void)global_first_cell; - (void)global_num_cells; // // ---------- Fixed size data ----------