From 922274c18f27b8d49ab3f44933374ac0826813bc Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 4 Apr 2015 10:34:33 -0400 Subject: [PATCH] Comment unused parameter names. While deleting unused parameter names is legal, it may be helpful in the future to see the comment in something like `unsigned int /*level*/`. --- include/deal.II/base/data_out_base.h | 2 +- include/deal.II/base/table_handler.h | 4 ++-- include/deal.II/base/time_stepping.templates.h | 4 ++-- include/deal.II/dofs/block_info.h | 4 ++-- include/deal.II/dofs/dof_accessor.templates.h | 14 +++++++------- include/deal.II/grid/tria_accessor.templates.h | 8 ++++---- include/deal.II/grid/tria_objects.h | 2 +- include/deal.II/hp/dof_faces.h | 8 ++++---- include/deal.II/multigrid/mg_transfer.h | 2 +- source/base/data_out_base.cc | 10 +++++----- 10 files changed, 29 insertions(+), 29 deletions(-) diff --git a/include/deal.II/base/data_out_base.h b/include/deal.II/base/data_out_base.h index bbdfe83118..661a927d98 100644 --- a/include/deal.II/base/data_out_base.h +++ b/include/deal.II/base/data_out_base.h @@ -2847,7 +2847,7 @@ public: * Read or write the data of this object for serialization */ template - void serialize(Archive &ar, const unsigned int version) + void serialize(Archive &ar, const unsigned int /*version*/) { ar &valid &h5_sol_filename diff --git a/include/deal.II/base/table_handler.h b/include/deal.II/base/table_handler.h index f5afce934a..8f5e52e316 100644 --- a/include/deal.II/base/table_handler.h +++ b/include/deal.II/base/table_handler.h @@ -830,7 +830,7 @@ void TableHandler::add_value (const std::string &key, template void -TableHandler::Column::save(Archive &ar, const unsigned int version) const +TableHandler::Column::save(Archive &ar, const unsigned int /*version*/) const { ar &entries &tex_caption & tex_format &precision @@ -841,7 +841,7 @@ TableHandler::Column::save(Archive &ar, const unsigned int version) const template void -TableHandler::Column::load(Archive &ar, const unsigned int version) +TableHandler::Column::load(Archive &ar, const unsigned int /*version*/) { ar &entries &tex_caption & tex_format &precision diff --git a/include/deal.II/base/time_stepping.templates.h b/include/deal.II/base/time_stepping.templates.h index a009dc824c..f4db414740 100644 --- a/include/deal.II/base/time_stepping.templates.h +++ b/include/deal.II/base/time_stepping.templates.h @@ -138,7 +138,7 @@ namespace TimeStepping template double ExplicitRungeKutta::evolve_one_time_step( std_cxx11::function f, - std_cxx11::function id_minus_tau_J_inverse, + std_cxx11::function /*id_minus_tau_J_inverse*/, double t, double delta_t, VECTOR &y) @@ -674,7 +674,7 @@ namespace TimeStepping template double EmbeddedExplicitRungeKutta::evolve_one_time_step( std_cxx11::function f, - std_cxx11::function id_minus_tau_J_inverse, + std_cxx11::function /*id_minus_tau_J_inverse*/, double t, double delta_t, VECTOR &y) diff --git a/include/deal.II/dofs/block_info.h b/include/deal.II/dofs/block_info.h index b2b0b0e036..de0d53408f 100644 --- a/include/deal.II/dofs/block_info.h +++ b/include/deal.II/dofs/block_info.h @@ -165,7 +165,7 @@ public: */ template void serialize (Archive &ar, - const unsigned int version); + const unsigned int /*version*/); private: /** @@ -295,7 +295,7 @@ BlockInfo::memory_consumption () const template void BlockInfo::serialize (Archive &ar, - const unsigned int version) + const unsigned int /*version*/) { ar &bi_global; ar &levels; diff --git a/include/deal.II/dofs/dof_accessor.templates.h b/include/deal.II/dofs/dof_accessor.templates.h index de1d8f4a4e..442bc76612 100644 --- a/include/deal.II/dofs/dof_accessor.templates.h +++ b/include/deal.II/dofs/dof_accessor.templates.h @@ -811,8 +811,8 @@ namespace internal static unsigned int n_active_fe_indices (const dealii::hp::DoFHandler<1,spacedim> &, - const unsigned int obj_level, - const unsigned int obj_index, + const unsigned int /*obj_level*/, + const unsigned int /*obj_index*/, const dealii::internal::int2type<1> &) { // on a cell, the number of active elements is one @@ -900,8 +900,8 @@ namespace internal static unsigned int n_active_fe_indices (const dealii::hp::DoFHandler<2,spacedim> &, - const unsigned int obj_level, - const unsigned int obj_index, + const unsigned int /*obj_level*/, + const unsigned int /*obj_index*/, const dealii::internal::int2type<2> &) { // on a cell, the number of active elements is one @@ -1037,8 +1037,8 @@ namespace internal static unsigned int n_active_fe_indices (const dealii::hp::DoFHandler<3,spacedim> &, - const unsigned int obj_level, - const unsigned int obj_index, + const unsigned int /*obj_level*/, + const unsigned int /*obj_index*/, const dealii::internal::int2type<3> &) { // on a cell, the number of active elements is one @@ -2034,8 +2034,8 @@ namespace internal inline typename dealii::internal::DoFHandler::Iterators::quad_iterator get_quad(const dealii::Triangulation *tria, - unsigned int index, DH *dof_handler) + unsigned int /*index*/, { } diff --git a/include/deal.II/grid/tria_accessor.templates.h b/include/deal.II/grid/tria_accessor.templates.h index 64ebe9f942..951bd881f0 100644 --- a/include/deal.II/grid/tria_accessor.templates.h +++ b/include/deal.II/grid/tria_accessor.templates.h @@ -2396,7 +2396,7 @@ TriaAccessor<0, 1, spacedim>::manifold_id () const template inline -bool TriaAccessor<0, 1, spacedim>::face_orientation (const unsigned int face) +bool TriaAccessor<0, 1, spacedim>::face_orientation (const unsigned int /*face*/) { return false; } @@ -2405,7 +2405,7 @@ bool TriaAccessor<0, 1, spacedim>::face_orientation (const unsigned int face) template inline -bool TriaAccessor<0, 1, spacedim>::face_flip (const unsigned int face) +bool TriaAccessor<0, 1, spacedim>::face_flip (const unsigned int /*face*/) { return false; } @@ -2414,7 +2414,7 @@ bool TriaAccessor<0, 1, spacedim>::face_flip (const unsigned int face) template inline -bool TriaAccessor<0, 1, spacedim>::face_rotation (const unsigned int face) +bool TriaAccessor<0, 1, spacedim>::face_rotation (const unsigned int /*face*/) { return false; } @@ -2423,7 +2423,7 @@ bool TriaAccessor<0, 1, spacedim>::face_rotation (const unsigned int face) template inline -bool TriaAccessor<0, 1, spacedim>::line_orientation (const unsigned int line) +bool TriaAccessor<0, 1, spacedim>::line_orientation (const unsigned int /*line*/) { return false; } diff --git a/include/deal.II/grid/tria_objects.h b/include/deal.II/grid/tria_objects.h index c6c0892e57..a3f0fbc7da 100644 --- a/include/deal.II/grid/tria_objects.h +++ b/include/deal.II/grid/tria_objects.h @@ -584,7 +584,7 @@ namespace internal template void TriaObjects::BoundaryOrMaterialId::serialize(Archive &ar, - const unsigned int version) + const unsigned int /*version*/) { // serialize this // structure by diff --git a/include/deal.II/hp/dof_faces.h b/include/deal.II/hp/dof_faces.h index def3ec380a..ebbbd0de25 100644 --- a/include/deal.II/hp/dof_faces.h +++ b/include/deal.II/hp/dof_faces.h @@ -366,7 +366,7 @@ namespace internal const unsigned int obj_index, const unsigned int fe_index, const unsigned int local_index, - const unsigned int obj_level) const + const unsigned int /*obj_level*/) const { Assert ((fe_index != dealii::hp::DoFHandler::default_fe_index), ExcMessage ("You need to specify a FE index when working " @@ -423,7 +423,7 @@ namespace internal const unsigned int fe_index, const unsigned int local_index, const types::global_dof_index global_index, - const unsigned int obj_level) + const unsigned int /*obj_level*/) { Assert ((fe_index != dealii::hp::DoFHandler::default_fe_index), ExcMessage ("You need to specify a FE index when working " @@ -521,7 +521,7 @@ namespace internal types::global_dof_index DoFIndicesOnFacesOrEdges:: nth_active_fe_index (const dealii::hp::DoFHandler &dof_handler, - const unsigned int obj_level, + const unsigned int /*obj_level*/, const unsigned int obj_index, const unsigned int n) const { @@ -579,7 +579,7 @@ namespace internal fe_index_is_active (const dealii::hp::DoFHandler &dof_handler, const unsigned int obj_index, const unsigned int fe_index, - const unsigned int obj_level) const + const unsigned int /*obj_level*/) const { Assert (obj_index < dof_offsets.size(), ExcIndexRange (obj_index, 0, static_cast(dof_offsets.size()))); diff --git a/include/deal.II/multigrid/mg_transfer.h b/include/deal.II/multigrid/mg_transfer.h index d6d5ae5bcf..39f69df8ba 100644 --- a/include/deal.II/multigrid/mg_transfer.h +++ b/include/deal.II/multigrid/mg_transfer.h @@ -81,7 +81,7 @@ namespace internal typedef ::dealii::TrilinosWrappers::SparseMatrix Matrix; template - static void reinit(Matrix &matrix, Sparsity &sparsity, int level, const DSP &dsp, DH &dh) + static void reinit(Matrix &, Sparsity &, int /*level*/, const DSP &, DH &) { } }; diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc index 526a883d8f..d3bb43ed67 100644 --- a/source/base/data_out_base.cc +++ b/source/base/data_out_base.cc @@ -3946,11 +3946,11 @@ namespace DataOutBase template - void write_eps (const std::vector > &patches, + void write_eps (const std::vector > &/*patches*/, const std::vector &/*data_names*/, const std::vector > &, - const EpsFlags &flags, - std::ostream &out) + const EpsFlags &/*flags*/, + std::ostream &/*out*/) { // not implemented, see the documentation of the function AssertThrow (dim==2, ExcNotImplemented()); @@ -5802,8 +5802,8 @@ namespace DataOutBase template void write_svg (const std::vector > &patches, - const std::vector &data_names, - const std::vector > &vector_data_ranges, + const std::vector &/*data_names*/, + const std::vector > &/*vector_data_ranges*/, const SvgFlags &flags, std::ostream &out) { -- 2.39.5