diff --git a/src/details.hpp b/src/details.hpp
index 5b5c546304f164fec6be2f68b4fafb191db490df..ce9ba1bc4cc0190f16809465cb4bdd8b7dd19ab7 100644
--- a/src/details.hpp
+++ b/src/details.hpp
@@ -20,7 +20,6 @@
 #include <boost/python.hpp>
 #include <Eigen/Core>
 
-#pragma GCC diagnostic error "-pedantic" // Alas only work for g++ 4.8
 #include <numpy/arrayobject.h>
 #include <iostream>