diff --git a/test/stdvector.cpp b/test/stdvector.cpp
index 10788a77f..e2e73680e 100644
--- a/test/stdvector.cpp
+++ b/test/stdvector.cpp
@@ -22,8 +22,8 @@
// License and a copy of the GNU General Public License along with
// Eigen. If not, see .
-#include
#include "main.h"
+#include
#include
template
diff --git a/unsupported/Eigen/AlignedVector3 b/unsupported/Eigen/AlignedVector3
index 19217693f..e7c6ed2cc 100644
--- a/unsupported/Eigen/AlignedVector3
+++ b/unsupported/Eigen/AlignedVector3
@@ -92,7 +92,7 @@ template class AlignedVector3
{}
template
- struct generic_assign_selector;
+ struct generic_assign_selector {};
template struct generic_assign_selector
{
diff --git a/unsupported/test/BVH.cpp b/unsupported/test/BVH.cpp
index 879daacc2..ea03c2d24 100644
--- a/unsupported/test/BVH.cpp
+++ b/unsupported/test/BVH.cpp
@@ -22,8 +22,8 @@
// License and a copy of the GNU General Public License along with
// Eigen. If not, see .
-#include
#include "main.h"
+#include
#include
inline double SQR(double x) { return x * x; }
@@ -43,7 +43,7 @@ EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE(double, Dim)
};
-template AlignedBox ei_bounding_box(const Matrix &v) { return AlignedBox(v); }
+template AlignedBox ei_bounding_box(const Matrix &v) { return AlignedBox(v); }
template AlignedBox ei_bounding_box(const Ball &b)
{ return AlignedBox(b.center.cwise() - b.radius, b.center.cwise() + b.radius); }
diff --git a/unsupported/test/autodiff.cpp b/unsupported/test/autodiff.cpp
index 71ae4cdc4..8d0986125 100644
--- a/unsupported/test/autodiff.cpp
+++ b/unsupported/test/autodiff.cpp
@@ -30,7 +30,7 @@ EIGEN_DONT_INLINE Scalar foo(const Scalar& x, const Scalar& y)
{
// return x+std::sin(y);
EIGEN_ASM_COMMENT("mybegin");
- return x*2 - std::pow(x,2) + 2*std::sqrt(y*y) - 4 * std::sin(x) + 2 * std::cos(y) - std::exp(-0.5*x*x);
+ return static_cast(x*2 - std::pow(x,2) + 2*std::sqrt(y*y) - 4 * std::sin(x) + 2 * std::cos(y) - std::exp(-0.5*x*x));
// return y/x;// - y*2;
EIGEN_ASM_COMMENT("myend");
}
@@ -136,8 +136,6 @@ template void adolc_forward_jacobian(const Func& f)
void test_autodiff()
{
- std::sqrt(3);
- std::sin(3);
std::cerr << foo(1,2) << "\n";
AutoDiffScalar ax(1,Vector2f::UnitX());
AutoDiffScalar ay(2,Vector2f::UnitY());
diff --git a/unsupported/test/matrixExponential.cpp b/unsupported/test/matrixExponential.cpp
index 6dcd80334..7f191731b 100644
--- a/unsupported/test/matrixExponential.cpp
+++ b/unsupported/test/matrixExponential.cpp
@@ -22,8 +22,8 @@
// License and a copy of the GNU General Public License along with
// Eigen. If not, see .
-#include
#include "main.h"
+#include
#include
double binom(int n, int k)