[cig-commits] commit: Fix compiler warnings
Mercurial
hg at geodynamics.org
Sat May 5 06:22:10 PDT 2012
changeset: 11:d927779469da
tag: tip
user: Walter Landry <wlandry at caltech.edu>
date: Sat May 05 06:20:15 2012 -0700
files: Tensor1/Tensor1_Expr_equals.hpp Tensor1/Tensor1_value.hpp Tensor2/Tensor2_times_Tensor1.hpp Tensor2/Tensor2_value.hpp
description:
Fix compiler warnings
diff -r c2aac0c27237 -r d927779469da Tensor1/Tensor1_Expr_equals.hpp
--- a/Tensor1/Tensor1_Expr_equals.hpp Sun Mar 11 03:45:58 2012 -0700
+++ b/Tensor1/Tensor1_Expr_equals.hpp Sat May 05 06:20:15 2012 -0700
@@ -7,7 +7,7 @@
template<class A, class B, class U, int Dim, char i, int Current_Dim>
inline void T1_equals_T1(A &iter, const Tensor1_Expr<B,U,Dim,i> result,
- const Number<Current_Dim> &N)
+ const Number<Current_Dim> &)
{
iter(Current_Dim-1)=result(Current_Dim-1);
T1_equals_T1(iter,result,Number<Current_Dim-1>());
@@ -15,7 +15,7 @@ inline void T1_equals_T1(A &iter, const
template<class A, class B, class U, int Dim, char i>
inline void T1_equals_T1(A &iter, const Tensor1_Expr<B,U,Dim,i> result,
- const Number<1> &N)
+ const Number<1> &)
{
iter(0)=result(0);
}
diff -r c2aac0c27237 -r d927779469da Tensor1/Tensor1_value.hpp
--- a/Tensor1/Tensor1_value.hpp Sun Mar 11 03:45:58 2012 -0700
+++ b/Tensor1/Tensor1_value.hpp Sat May 05 06:20:15 2012 -0700
@@ -61,14 +61,14 @@ public:
template<char i, int Dim>
Tensor1_Expr<Tensor1<T,Tensor_Dim>,T,Dim,i>
- operator()(const Index<i,Dim> &index)
+ operator()(const Index<i,Dim> &)
{
return Tensor1_Expr<Tensor1<T,Tensor_Dim>,T,Dim,i>(*this);
}
template<char i, int Dim>
Tensor1_Expr<const Tensor1<T,Tensor_Dim>,T,Dim,i>
- operator()(const Index<i,Dim> &index) const
+ operator()(const Index<i,Dim> &) const
{
return Tensor1_Expr<const Tensor1<T,Tensor_Dim>,T,Dim,i>(*this);
}
diff -r c2aac0c27237 -r d927779469da Tensor2/Tensor2_times_Tensor1.hpp
--- a/Tensor2/Tensor2_times_Tensor1.hpp Sun Mar 11 03:45:58 2012 -0700
+++ b/Tensor2/Tensor2_times_Tensor1.hpp Sat May 05 06:20:15 2012 -0700
@@ -11,12 +11,12 @@ class Tensor2_times_Tensor1_1
const Tensor1_Expr<B,U,Dim1,j> iterB;
template<int Current_Dim>
- typename promote<T,U>::V eval(const int N1, const Number<Current_Dim> &N) const
+ typename promote<T,U>::V eval(const int N1, const Number<Current_Dim> &) const
{
return iterA(N1,Current_Dim-1)*iterB(Current_Dim-1)
+ eval(N1,Number<Current_Dim-1>());
}
- typename promote<T,U>::V eval(const int N1, const Number<1> &N) const
+ typename promote<T,U>::V eval(const int N1, const Number<1> &) const
{
return iterA(N1,0)*iterB(0);
}
diff -r c2aac0c27237 -r d927779469da Tensor2/Tensor2_value.hpp
--- a/Tensor2/Tensor2_value.hpp Sun Mar 11 03:45:58 2012 -0700
+++ b/Tensor2/Tensor2_value.hpp Sat May 05 06:20:15 2012 -0700
@@ -84,7 +84,7 @@ public:
template<char i, char j, int Dim0, int Dim1>
Tensor2_Expr<const Tensor2<T,Tensor_Dim0,Tensor_Dim1,layout>,T,Dim0,Dim1,i,j>
- operator()(const Index<i,Dim0> index1, const Index<j,Dim1> index2) const
+ operator()(const Index<i,Dim0> , const Index<j,Dim1> ) const
{
return Tensor2_Expr<const Tensor2<T,Tensor_Dim0,Tensor_Dim1,layout>,
T,Dim0,Dim1,i,j>(*this);
More information about the CIG-COMMITS
mailing list