added a missing typename and fixed a unused typedef warning
diff --git a/Eigen/src/QR/HouseholderQR.h b/Eigen/src/QR/HouseholderQR.h
index b659498..5e67463 100644
--- a/Eigen/src/QR/HouseholderQR.h
+++ b/Eigen/src/QR/HouseholderQR.h
@@ -309,7 +309,6 @@
 void householder_qr_inplace_update(MatrixQR& mat, HCoeffs& hCoeffs, const VectorQR& newColumn,
                                    typename MatrixQR::Index k, typename MatrixQR::Scalar* tempData) {
   typedef typename MatrixQR::Index Index;
-  typedef typename MatrixQR::Scalar Scalar;
   typedef typename MatrixQR::RealScalar RealScalar;
   Index rows = mat.rows();
 
diff --git a/unsupported/test/NNLS.cpp b/unsupported/test/NNLS.cpp
index 4b8ffa8..d65920b 100644
--- a/unsupported/test/NNLS.cpp
+++ b/unsupported/test/NNLS.cpp
@@ -90,7 +90,7 @@
       sqrt(Eigen::GenericNumTraits<Scalar>::epsilon()) * b.cwiseAbs().maxCoeff() * A.cwiseAbs().maxCoeff();
   Index max_iter = 5 * A.cols();  // A heuristic guess.
   NNLS<MatrixType> nnls(A, max_iter, tolerance);
-  const NNLS<MatrixType>::SolutionVectorType &x = nnls.solve(b);
+  const typename NNLS<MatrixType>::SolutionVectorType &x = nnls.solve(b);
 
   //
   // VERIFY