diff --git a/src/ExprNode.hh b/src/ExprNode.hh
index 518370f6a6c05c34aa6d3156d67f0173e30fa57f..e13b7f0e7dba7815ce995e1afc4c6a58c49131d3 100644
--- a/src/ExprNode.hh
+++ b/src/ExprNode.hh
@@ -395,7 +395,7 @@ public:
     They are added to the set given in argument.
     Note that model local variables are substituted by their expression in the computation.
   */
-  virtual void collectEndogenous(set<pair<int, int>> &result) const;
+  void collectEndogenous(set<pair<int, int>> &result) const;
 
   class EvalException
   {