Skip to content

Commit

Permalink
Merge pull request #33171 from smuzaffar/llvm11-warn
Browse files Browse the repository at this point in the history
initialize variables to fix compiler warnings
  • Loading branch information
cmsbuild authored Mar 17, 2021
2 parents 07a27e5 + 3ccbf50 commit ca9029f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CondTools/Ecal/src/EcalTPGWeightIdMapHandler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ void popcon::EcalTPGWeightIdMapHandler::readxmlFile() {
unsigned int wloc[5];
EcalTPGWeights w;
EcalTPGWeightIdMap* weightMap = new EcalTPGWeightIdMap;
int ngroups, igroups;
int ngroups, igroups = 0;
edm::LogInfo("EcalTPGWeightIdMapHandler") << "found " << igroups << "Weight groups";
for (int i = 0; i < 5; i++)
std::getline(fxml, dummyLine); // skip first lines
Expand Down
2 changes: 1 addition & 1 deletion L1Trigger/TrackFindingTracklet/src/PurgeDuplicate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ void PurgeDuplicate::execute(std::vector<Track*>& outputtracks_) {
int i = stubsTrk2[stcount].first;
int reg = (i > 0 && i < 10) * (i - 1) + (i > 10) * (i - 5) - (i < 0) * i;
double nres = getPhiRes(inputtracklets_[jtrk], fullStubslistsTrk2[stcount]);
double ores;
double ores = 0;
if (URStubidsTrk2[reg] != -1)
ores = getPhiRes(inputtracklets_[jtrk], fullStubslistsTrk2[URStubidsTrk2[reg]]);
if (URStubidsTrk2[reg] == -1 || nres < ores) {
Expand Down

0 comments on commit ca9029f

Please sign in to comment.