diff --git a/math/smatrix/inc/Math/Dinv.h b/math/smatrix/inc/Math/Dinv.h index cc4a7cb795c51353670b1163da3517175b663d9a..5c79b542ac335e900d2dcc97cda0def29d0a81c2 100644 --- a/math/smatrix/inc/Math/Dinv.h +++ b/math/smatrix/inc/Math/Dinv.h @@ -168,7 +168,7 @@ class Inverter<0> { public: /// template <class MatrixRep> - inline static bool Dinv(MatrixRep& rhs) { return true; } + inline static bool Dinv(MatrixRep&) { return true; } }; diff --git a/math/smatrix/inc/Math/HelperOps.h b/math/smatrix/inc/Math/HelperOps.h index a94a72de2eb9cb4b38a69c8b35cc9f45e65c0200..0374fb22d4c8c4e7ab2d1d8473fce7d28d01121a 100644 --- a/math/smatrix/inc/Math/HelperOps.h +++ b/math/smatrix/inc/Math/HelperOps.h @@ -123,8 +123,8 @@ namespace Math { template <class T, unsigned int D1, unsigned int D2, class A> struct Assign<T, D1, D2, A, MatRepSym<T,D1>, MatRepStd<T,D1,D2> > { - static void Evaluate(SMatrix<T,D1,D2,MatRepSym<T,D1> >& lhs, - const Expr<A,T,D1,D2,MatRepStd<T,D1,D2> >& rhs) + static void Evaluate(SMatrix<T,D1,D2,MatRepSym<T,D1> >&, + const Expr<A,T,D1,D2,MatRepStd<T,D1,D2> >&) { STATIC_CHECK(0==1, Cannot_assign_general_to_symmetric_matrix); } @@ -253,8 +253,8 @@ namespace Math { template <class T, unsigned int D1, unsigned int D2, class A> struct PlusEquals<T, D1, D2, A, MatRepSym<T,D1>, MatRepStd<T,D1,D2> > { - static void Evaluate(SMatrix<T,D1,D2,MatRepSym<T,D1> >& lhs, - const Expr<A,T,D1,D2,MatRepStd<T,D1,D2> >& rhs) + static void Evaluate(SMatrix<T,D1,D2,MatRepSym<T,D1> >&, + const Expr<A,T,D1,D2,MatRepStd<T,D1,D2> >&) { STATIC_CHECK(0==1, Cannot_plusEqual_general_to_symmetric_matrix); } @@ -337,8 +337,8 @@ namespace Math { template <class T, unsigned int D1, unsigned int D2, class A> struct MinusEquals<T, D1, D2, A, MatRepSym<T,D1>, MatRepStd<T,D1,D2> > { - static void Evaluate(SMatrix<T,D1,D2,MatRepSym<T,D1> >& lhs, - const Expr<A,T,D1,D2,MatRepStd<T,D1,D2> >& rhs) + static void Evaluate(SMatrix<T,D1,D2,MatRepSym<T,D1> >&, + const Expr<A,T,D1,D2,MatRepStd<T,D1,D2> >&) { STATIC_CHECK(0==1, Cannot_minusEqual_general_to_symmetric_matrix); } diff --git a/math/smatrix/inc/Math/MatrixRepresentationsStatic.h b/math/smatrix/inc/Math/MatrixRepresentationsStatic.h index bd84f9dbab18be592da174d338f0189c5988ce4d..ddc7f07373db16882dc5efa833df81770cae387a 100644 --- a/math/smatrix/inc/Math/MatrixRepresentationsStatic.h +++ b/math/smatrix/inc/Math/MatrixRepresentationsStatic.h @@ -291,7 +291,7 @@ template<> assignment : only symmetric to symmetric allowed */ template <class R> - inline MatRepSym<T, D>& operator=(const R& rhs) { + inline MatRepSym<T, D>& operator=(const R&) { STATIC_CHECK(0==1, Cannot_assign_general_to_symmetric_matrix_representation); return *this; @@ -305,7 +305,7 @@ template<> self addition : only symmetric to symmetric allowed */ template <class R> - inline MatRepSym<T, D>& operator+=(const R& rhs) { + inline MatRepSym<T, D>& operator+=(const R&) { STATIC_CHECK(0==1, Cannot_add_general_to_symmetric_matrix_representation); return *this; @@ -319,7 +319,7 @@ template<> self subtraction : only symmetric to symmetric allowed */ template <class R> - inline MatRepSym<T, D>& operator-=(const R& rhs) { + inline MatRepSym<T, D>& operator-=(const R&) { STATIC_CHECK(0==1, Cannot_substract_general_to_symmetric_matrix_representation); return *this; diff --git a/math/smatrix/test/testSMatrix.cxx b/math/smatrix/test/testSMatrix.cxx index a9433f0dfb24440e51e3c8ac1549799c514dd7ec..f595146fdf0f1c850e03b4c3f5f8ae54d7404690 100644 --- a/math/smatrix/test/testSMatrix.cxx +++ b/math/smatrix/test/testSMatrix.cxx @@ -81,7 +81,7 @@ int test1() { #ifdef TEST_STATIC_CHECK // create a vector of size 2 from 3 arguments - SVector<float, 2> v(1,2,3); + SVector<float, 2> vbad(1,2,3); #endif // test STL interface