From 6dd9077070d8c9f09101b0b050ab32a7c660c3a0 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 24 Jun 2016 11:34:21 +0200 Subject: [PATCH] Fix some unused typedef warnings. --- unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h b/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h index 8e40569c1..ee7a92274 100755 --- a/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h +++ b/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h @@ -548,7 +548,7 @@ struct ScalarBinaryOpTraits, Bi EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(typename Eigen::internal::remove_all::type, typename Eigen::internal::traits::type>::Scalar, product) > \ FUNC(const Eigen::AutoDiffScalar& x) { \ using namespace Eigen; \ - typedef typename Eigen::internal::traits::type>::Scalar Scalar; \ + EIGEN_UNUSED typedef typename Eigen::internal::traits::type>::Scalar Scalar; \ CODE; \ } @@ -617,8 +617,6 @@ EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(typename internal::remove_all::t pow(const Eigen::AutoDiffScalar &x, const typename internal::traits::type>::Scalar &y) { using namespace Eigen; - typedef typename internal::remove_all::type DerTypeCleaned; - typedef typename Eigen::internal::traits::Scalar Scalar; return Eigen::MakeAutoDiffScalar(std::pow(x.value(),y), x.derivatives() * (y * std::pow(x.value(),y-1))); }