Skip to content

Commit 16b09b8

Browse files
authored
[PWGLF] Fix compilation warnings (AliceO2Group#8922)
1 parent 4ffef41 commit 16b09b8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

PWGMM/Mult/Tasks/dndeta-mft-pbpb.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ struct PseudorapidityDensityMFT {
11151115
{
11161116
float c_gen = -1;
11171117
bool atLeastOne = false;
1118-
int moreThanOne = 0;
1118+
// int moreThanOne = 0;
11191119
for (auto& collision : collisions) {
11201120
float c_rec = -1;
11211121
if constexpr (C::template contains<aod::CentFT0Cs>()) {
@@ -1132,7 +1132,7 @@ struct PseudorapidityDensityMFT {
11321132
}
11331133
}
11341134
atLeastOne = true;
1135-
++moreThanOne;
1135+
// ++moreThanOne;
11361136
auto z = collision.posZ();
11371137

11381138
if constexpr (C::template contains<aod::CentFT0Cs>()) {

PWGMM/UE/Tasks/ue-zdc-analysys.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,10 +355,11 @@ struct ZDCAnalysis {
355355
float multFDA = 0;
356356
float multFDC = 0;
357357
if (foundBC.has_fdd()) {
358-
for (auto amplitude : foundBC.fdd().chargeA()) {
358+
auto const& fdd = foundBC.fdd();
359+
for (auto const& amplitude : fdd.chargeA()) {
359360
multFDA += amplitude;
360361
}
361-
for (auto amplitude : foundBC.fdd().chargeC()) {
362+
for (auto const& amplitude : fdd.chargeC()) {
362363
multFDC += amplitude;
363364
}
364365
} else {

0 commit comments

Comments
 (0)