]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Switch from (void) to commented parameter name.
authorDavid Wells <drwells@vt.edu>
Sat, 4 Apr 2015 14:35:48 +0000 (10:35 -0400)
committerMatthias Maier <matthias.maier@iwr.uni-heidelberg.de>
Tue, 14 Apr 2015 10:50:17 +0000 (12:50 +0200)
For some compiler options the (void) was not included in the source,
leading to extra compiler warnings.

source/base/data_out_base.cc

index d3bb43ed67fba01ab74e677a87b8d4d3ec6d0829..80db87a97b4c9452271484f32f95956092127c32 100644 (file)
@@ -7177,7 +7177,7 @@ void DataOutBase::write_hdf5_parallel (const std::vector<Patch<dim,spacedim> > &
 
 
 template <int dim, int spacedim>
-void DataOutBase::write_hdf5_parallel (const std::vector<Patch<dim,spacedim> > &patches,
+void DataOutBase::write_hdf5_parallel (const std::vector<Patch<dim,spacedim> > &/*patches*/,
                                        const DataOutBase::DataOutFilter &data_filter,
                                        const bool write_mesh_file,
                                        const std::string &mesh_filename,
@@ -7188,7 +7188,6 @@ void DataOutBase::write_hdf5_parallel (const std::vector<Patch<dim,spacedim> > &
   // throw an exception, but first make
   // sure the compiler does not warn about
   // the now unused function arguments
-  (void)patches;
   (void)data_filter;
   (void)write_mesh_file;
   (void)mesh_filename;

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.