diff --git a/src/ComputingTasks.cc b/src/ComputingTasks.cc
index 98b8d3a2737ce3081dc739c231b66574597aea2f..e2b0b2f74db2fdac5c28b16e4102a72d3231c77a 100644
--- a/src/ComputingTasks.cc
+++ b/src/ComputingTasks.cc
@@ -1930,7 +1930,7 @@ void
 OsrParamsStatement::checkPass(ModFileStructure& mod_file_struct, WarningConsolidation& warnings)
 {
   if (mod_file_struct.osr_params_present)
-    cerr << "WARNING: You have more than one osr_params statement in the .mod file." << endl;
+    warnings << "WARNING: You have more than one osr_params statement in the .mod file." << endl;
   mod_file_struct.osr_params_present = true;
 
   try