diff --git a/include/tsid/tasks/task-contact-force.hpp b/include/tsid/tasks/task-contact-force.hpp
index 46d2f987b7e177085b39ae2a54638313ebeed379..ed9bd7ab0aeb42f11ff7112d2b2de04ce0eb5316 100644
--- a/include/tsid/tasks/task-contact-force.hpp
+++ b/include/tsid/tasks/task-contact-force.hpp
@@ -18,6 +18,7 @@
 #ifndef __invdyn_task_contact_force_hpp__
 #define __invdyn_task_contact_force_hpp__
 
+#include <tsid/deprecated.hh>
 #include <tsid/tasks/task-base.hpp>
 #include <tsid/formulations/contact-level.hpp>
 #include <memory>
@@ -42,11 +43,14 @@ namespace tsid
        * argument the list of active contacts. This can be needed for force tasks that
        * involve all contacts, such as the CoP task.
        */
+TSID_DISABLE_WARNING_PUSH
+TSID_DISABLE_WARNING(-Woverloaded-virtual)
       virtual const ConstraintBase & compute(const double t,
                                              ConstRefVector q,
                                              ConstRefVector v,
                                              Data & data,
                                              const std::vector<std::shared_ptr<ContactLevel> >  *contacts) = 0;
+TSID_DISABLE_WARNING_POP
 
       /**
        * Return the name of the contact associated to this task if this task is associated to a specific contact.