diff --git a/src/solverfactory.hh b/src/solverfactory.hh
index 033ae4cc421d5fdc67c8d55f13412bdc2ad2cd50..815ec692173f334f089926dbae50f0654424b18d 100644
--- a/src/solverfactory.hh
+++ b/src/solverfactory.hh
@@ -4,7 +4,11 @@
 #include <dune/common/bitsetvector.hh>
 #include <dune/common/parametertree.hh>
 
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wsign-compare"
 #include <dune/solvers/iterationsteps/multigridstep.hh>
+#pragma clang diagnostic pop
+
 #include <dune/solvers/iterationsteps/truncatedblockgsstep.hh>
 #include <dune/solvers/norms/energynorm.hh>
 #include <dune/solvers/solvers/loopsolver.hh>