diff --git a/include/dynamic-graph/linear-algebra.h b/include/dynamic-graph/linear-algebra.h
index 7feab4902192734f0f5492cc3c976aa4979d9b67..5808ec4e020e450e29117df986e187ce18f9af1b 100644
--- a/include/dynamic-graph/linear-algebra.h
+++ b/include/dynamic-graph/linear-algebra.h
@@ -6,8 +6,11 @@
 
 #ifndef DYNAMIC_GRAPH_LINEAR_ALGEBRA_H
 #define DYNAMIC_GRAPH_LINEAR_ALGEBRA_H
+#pragma GCC diagnostic push
+#pragma GCC system_header
 #include <Eigen/Core>
 #include <Eigen/Geometry>
+#pragma GCC diagnostic pop
 
 namespace dynamicgraph {
 typedef Eigen::MatrixXd Matrix;