From bf91370ba157095b1131d7bcae0ea944769efd65 Mon Sep 17 00:00:00 2001 From: bangerth Date: Tue, 31 Jul 2012 15:26:04 +0000 Subject: [PATCH] Patch by Uwe Koecher: Avoid warnings about unused variables. git-svn-id: https://svn.dealii.org/trunk@25743 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/base/symmetric_tensor.h | 1 + deal.II/include/deal.II/base/tensor.h | 1 + deal.II/include/deal.II/base/tensor_base.h | 1 + 3 files changed, 3 insertions(+) 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