From c01d6291efac454307d4a1ff8fc25d9f8437a08c Mon Sep 17 00:00:00 2001 From: mmusich Date: Thu, 25 Jan 2024 17:22:34 +0100 Subject: [PATCH] silence CPP20 warnings about maybe-uninitialized variables in momentumBiasValidation.C --- Alignment/OfflineValidation/macros/momentumBiasValidation.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Alignment/OfflineValidation/macros/momentumBiasValidation.C b/Alignment/OfflineValidation/macros/momentumBiasValidation.C index 06b3069a5a7c6..b48833be3212c 100644 --- a/Alignment/OfflineValidation/macros/momentumBiasValidation.C +++ b/Alignment/OfflineValidation/macros/momentumBiasValidation.C @@ -40,8 +40,8 @@ namespace eop { double mean = f1->GetParameter(1); double deviation = f1->GetParameter(2); - double lowLim; - double upLim; + double lowLim{mean - (2.0 * deviation)}; + double upLim{mean + (2.0 * deviation)}; double newmean; double degrade = 0.05;