]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use a (void) cast on unused parameters.
authorDavid Wells <drwells@vt.edu>
Tue, 14 Apr 2015 13:02:47 +0000 (09:02 -0400)
committerDavid Wells <drwells@vt.edu>
Tue, 14 Apr 2015 13:02:47 +0000 (09:02 -0400)
include/deal.II/lac/dynamic_sparsity_pattern.h
source/fe/mapping_fe.cc

index 0a5f63d8cdf4013b605c7221da16a01cbec5b6be..388622ffaae006ec2c18b343a15c82b583d70c92 100644 (file)
@@ -835,6 +835,7 @@ namespace DynamicSparsityPatternIterators
   int
   Iterator::operator - (const Iterator &other) const
   {
+    (void)other;
     Assert (accessor.sparsity_pattern == other.accessor.sparsity_pattern,
             ExcInternalError());
     Assert (false, ExcNotImplemented());
index 77101247f03dc43721e6e302de390cf3ce7227e1..f5960d832408c926b240688ab8af11f348201cf6 100644 (file)
@@ -702,6 +702,9 @@ void MappingFE<dim,spacedim,DH,VECTOR>::transform
  const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
  const MappingType mapping_type) const
 {
+  (void)input;
+  (void)output;
+  (void)mapping_data;
   AssertDimension (input.size(), output.size());
 
   AssertThrow(false, ExcNotImplemented());
@@ -900,6 +903,7 @@ transform_real_to_unit_cell_internal
   }
 
   const unsigned int n_shapes=mdata.shape_values.size();
+  (void)n_shapes;
   Assert(n_shapes!=0, ExcInternalError());
   AssertDimension (mdata.shape_derivatives.size(), n_shapes);
 

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.