Skip to content

Commit

Permalink
Merge pull request #43034 from aandvalenzuela/from-CMSSW_13_3_X_2023-…
Browse files Browse the repository at this point in the history
…10-15-2300

Fix may be used uninitialized warning in `RecoTracker/MeasurementDet` (el8_aarch64_gcc12)
  • Loading branch information
cmsbuild authored Nov 3, 2023
2 parents c90be06 + 0243e41 commit 21c20dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace {
} // namespace

TkPixelMeasurementDet::TkPixelMeasurementDet(const GeomDet* gdet, PxMeasurementConditionSet& conditions)
: MeasurementDet(gdet), theDetConditions(&conditions) {
: MeasurementDet(gdet), index_(0), theDetConditions(&conditions) {
if (dynamic_cast<const PixelGeomDetUnit*>(gdet) == nullptr) {
throw MeasurementDetException("TkPixelMeasurementDet constructed with a GeomDet which is not a PixelGeomDetUnit");
}
Expand Down
1 change: 0 additions & 1 deletion RecoTracker/MeasurementDet/plugins/TkPixelMeasurementDet.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ class dso_hidden TkPixelMeasurementDet final : public MeasurementDet {
void setIndex(int i) { index_ = i; }

private:
unsigned int id_;
std::vector<LocalPoint> badRocPositions_;

int index_;
Expand Down

0 comments on commit 21c20dd

Please sign in to comment.