]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Patch by Uwe Koecher: Avoid warnings about unused variables.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 31 Jul 2012 15:26:04 +0000 (15:26 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 31 Jul 2012 15:26:04 +0000 (15:26 +0000)
git-svn-id: https://svn.dealii.org/trunk@25743 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/symmetric_tensor.h
deal.II/include/deal.II/base/tensor.h
deal.II/include/deal.II/base/tensor_base.h

index b6ba9855e02e3b69f8d538cf41f8162d47e623b1..39c626880eeff5bcf881a3d75e9eb4272c8acb36 100644 (file)
@@ -1179,6 +1179,7 @@ SymmetricTensor<rank,dim,Number> &
 SymmetricTensor<rank,dim,Number>::operator = (const Number d)
 {
   Assert (d==0, ExcMessage ("Only assignment with zero is allowed"));
+  (void) d;
 
   data = 0;
 
index cceccc92ce103cd492b55ef25fc1334a26f80dcd..d32dbe917a69a2489d674752d8f3a98b37bccf3d 100644 (file)
@@ -399,6 +399,7 @@ Tensor<rank_,dim,Number> &
 Tensor<rank_,dim,Number>::operator = (const Number d)
 {
   Assert (d==Number(0), ExcMessage ("Only assignment with zero is allowed"));
+  (void) d;
 
   for (unsigned int i=0; i<dim; ++i)
     subtensor[i] = 0;
index 491695df9bac225964d23f66c23b44c78165ace9..cdf9ddf3bb27e27fedfaa62f36588572332d2dd8 100644 (file)
@@ -1017,6 +1017,7 @@ inline
 Tensor<1,dim,Number> & Tensor<1,dim,Number>::operator = (const Number d)
 {
   Assert (d==Number(0), ExcMessage ("Only assignment with zero is allowed"));
+  (void) d;
 
   for (unsigned int i=0; i<dim; ++i)
     values[i] = 0;

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.