Skip to content

Commit 6867671

Browse files
committed
Initializing variables to avoid warnings (following O2 Code Guidelines)
1 parent dbad510 commit 6867671

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PWGLF/Tasks/Strangeness/lambdaJetPolarizationIonsDerived.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ struct lambdajetpolarizationionsderived {
669669

670670
// Calculating polarization observables (in the Lambda frame, because that is easier -- does not require boosts):
671671
// To be precise, not actually the polarization, but a part of the summand in P^*_\Lambda = (3/\alpha_\Lambda) * <p^*_{proton}>
672-
float PolStarX, PolStarY, PolStarZ;
672+
float PolStarX = 0, PolStarY = 0, PolStarZ = 0; // Dummy initialization: avoid warnings in compile time
673673
if (isLambda){ // Notice there is no need to check analyseLambda again due to previous checks.
674674
PolStarX = polPrefactorLambda * protonLikeStarUnit3Vec.X();
675675
PolStarY = polPrefactorLambda * protonLikeStarUnit3Vec.Y();

0 commit comments

Comments
 (0)