From f0f1e89a218afa597fa0ae20a6354505b409a1d8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Wed, 22 May 2024 15:38:49 +0200
Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20OsrParamsStatement::checkPass():?=
 =?UTF-8?q?=20use=20warnings=20consolidation=20structure=E2=80=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

…instead of cerr.

(cherry picked from commit 0611f94920c52a37c9b1a99e43a345656386ce62)
---
 src/ComputingTasks.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ComputingTasks.cc b/src/ComputingTasks.cc
index 90964908..32ec79e0 100644
--- a/src/ComputingTasks.cc
+++ b/src/ComputingTasks.cc
@@ -2014,7 +2014,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
-- 
GitLab