Skip to content

Commit ff42400

Browse files
authored
Merge pull request #43792 from mmusich/silenceCPPwarnings
silence CPP20 warnings about `maybe-uninitialized` variables in `momentumBiasValidation.C`
2 parents 4a8d8c4 + c01d629 commit ff42400

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Alignment/OfflineValidation/macros/momentumBiasValidation.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ namespace eop {
4040
double mean = f1->GetParameter(1);
4141
double deviation = f1->GetParameter(2);
4242

43-
double lowLim;
44-
double upLim;
43+
double lowLim{mean - (2.0 * deviation)};
44+
double upLim{mean + (2.0 * deviation)};
4545
double newmean;
4646

4747
double degrade = 0.05;

0 commit comments

Comments
 (0)