From b9022b6df4f5317d0c06f5e0a0f9b39b6fbeecae Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 30 Oct 2017 18:33:00 +0100 Subject: [PATCH] Fix warnings regarding extra';' and unused parameters --- include/deal.II/base/patterns.h | 8 ++++---- source/dofs/dof_handler_policy.cc | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/deal.II/base/patterns.h b/include/deal.II/base/patterns.h index 46f8ac20ca..4e75010678 100644 --- a/include/deal.II/base/patterns.h +++ b/include/deal.II/base/patterns.h @@ -1469,28 +1469,28 @@ namespace Patterns constexpr int max_list_rank() { return RankInfo::list_rank; - }; + } template constexpr int max_list_rank() { return std_cxx14::max(RankInfo::list_rank, max_list_rank()); - }; + } // Helper function for map_rank template constexpr int max_map_rank() { return RankInfo::map_rank; - }; + } template constexpr int max_map_rank() { return std_cxx14::max(RankInfo::map_rank, max_map_rank()); - }; + } // Rank of vector types template diff --git a/source/dofs/dof_handler_policy.cc b/source/dofs/dof_handler_policy.cc index 9cdca359e2..1db96a4fab 100644 --- a/source/dofs/dof_handler_policy.cc +++ b/source/dofs/dof_handler_policy.cc @@ -4468,6 +4468,7 @@ namespace internal Implementation::renumber_mg_dofs (ghosted_new_numbers, relevant_dofs, *dof_handler, level, true); #else + (void) new_numbers; Assert(false, ExcNotImplemented()); #endif -- 2.39.5