From: bangerth Date: Tue, 31 Jul 2012 15:26:04 +0000 (+0000) Subject: Patch by Uwe Koecher: Avoid warnings about unused variables. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf91370ba157095b1131d7bcae0ea944769efd65;p=dealii-svn.git Patch by Uwe Koecher: Avoid warnings about unused variables. git-svn-id: https://svn.dealii.org/trunk@25743 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/base/symmetric_tensor.h b/deal.II/include/deal.II/base/symmetric_tensor.h index b6ba9855e0..39c626880e 100644 --- a/deal.II/include/deal.II/base/symmetric_tensor.h +++ b/deal.II/include/deal.II/base/symmetric_tensor.h @@ -1179,6 +1179,7 @@ SymmetricTensor & SymmetricTensor::operator = (const Number d) { Assert (d==0, ExcMessage ("Only assignment with zero is allowed")); + (void) d; data = 0; diff --git a/deal.II/include/deal.II/base/tensor.h b/deal.II/include/deal.II/base/tensor.h index cceccc92ce..d32dbe917a 100644 --- a/deal.II/include/deal.II/base/tensor.h +++ b/deal.II/include/deal.II/base/tensor.h @@ -399,6 +399,7 @@ Tensor & Tensor::operator = (const Number d) { Assert (d==Number(0), ExcMessage ("Only assignment with zero is allowed")); + (void) d; for (unsigned int i=0; i & 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