From 1c90304c74caf8771f19e789305556d8dc59645a Mon Sep 17 00:00:00 2001 From: payetvin <113102157+payetvin@users.noreply.github.com> Date: Mon, 8 Jul 2024 11:35:07 +0200 Subject: [PATCH] Compilation warnings (#2237) close #2236 --- src/solver/hydro/management/finalLevelValidator.cpp | 8 ++++---- src/solver/optimisation/HebdoProblemToLpsTranslator.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/solver/hydro/management/finalLevelValidator.cpp b/src/solver/hydro/management/finalLevelValidator.cpp index 8986f4b233..343a086416 100644 --- a/src/solver/hydro/management/finalLevelValidator.cpp +++ b/src/solver/hydro/management/finalLevelValidator.cpp @@ -40,14 +40,14 @@ FinalLevelValidator::FinalLevelValidator( const unsigned int lastSimulationDay, const unsigned int firstMonthOfSimulation, HydroErrorsCollector& errorCollector): + year_(year), + lastSimulationDay_(lastSimulationDay), + firstMonthOfSimulation_(firstMonthOfSimulation), hydro_(hydro), - areaName_(areaName), areaIndex_(areaIndex), + areaName_(areaName), initialLevel_(initialLevel), finalLevel_(finalLevel), - year_(year), - lastSimulationDay_(lastSimulationDay), - firstMonthOfSimulation_(firstMonthOfSimulation), errorCollector_(errorCollector) { } diff --git a/src/solver/optimisation/HebdoProblemToLpsTranslator.cpp b/src/solver/optimisation/HebdoProblemToLpsTranslator.cpp index d4c6e4b6b0..9c67012c70 100644 --- a/src/solver/optimisation/HebdoProblemToLpsTranslator.cpp +++ b/src/solver/optimisation/HebdoProblemToLpsTranslator.cpp @@ -85,13 +85,13 @@ ConstantDataFromAntares HebdoProblemToLpsTranslator::commonProblemData( throw WeeklyProblemTranslationException("ConstraintesCount must be strictly positive"); } - if (problem->NombreDeContraintes > problem->IndicesDebutDeLigne.size()) + if (problem->NombreDeContraintes > (int)problem->IndicesDebutDeLigne.size()) { throw WeeklyProblemTranslationException( "ConstraintesCount exceed IndicesDebutDeLigne size"); } - if (problem->NombreDeContraintes > problem->NombreDeTermesDesLignes.size()) + if (problem->NombreDeContraintes > (int)problem->NombreDeTermesDesLignes.size()) { throw WeeklyProblemTranslationException( "ConstraintesCount exceed NombreDeTermesDesLignes size");