From dde9f3657658adba57d91cd6288830be66e2cc78 Mon Sep 17 00:00:00 2001
From: Markus Frank <Markus.Frank@cern.ch>
Date: Tue, 9 Jul 2019 17:52:00 +0200
Subject: [PATCH] Remove warnings

---
 DDG4/src/Geant4SensitiveDetector.cpp | 4 ++--
 DDRec/src/MaterialScan.cpp           | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/DDG4/src/Geant4SensitiveDetector.cpp b/DDG4/src/Geant4SensitiveDetector.cpp
index 669a06a06..ca29a5a16 100644
--- a/DDG4/src/Geant4SensitiveDetector.cpp
+++ b/DDG4/src/Geant4SensitiveDetector.cpp
@@ -218,8 +218,8 @@ long long Geant4SensitiveDetector::getVolumeID(G4Step* aStep) {
 }
 
 
-long long Geant4SensitiveDetector::getCellID(G4Step* s) {
-  StepHandler h(s);
+long long Geant4SensitiveDetector::getCellID(G4Step* step) {
+  StepHandler h(step);
   Geant4VolumeManager volMgr = Geant4Mapping::instance().volumeManager();
   VolumeID            volID  = volMgr.volumeID(h.preTouchable());
   Segmentation        seg    = m_readout.segmentation();
diff --git a/DDRec/src/MaterialScan.cpp b/DDRec/src/MaterialScan.cpp
index 84647c7cb..5a4130e74 100644
--- a/DDRec/src/MaterialScan.cpp
+++ b/DDRec/src/MaterialScan.cpp
@@ -141,11 +141,11 @@ void MaterialScan::setMaterial(Material material)   {
   struct PvCollector  {
     Material material;
     std::set<const TGeoNode*>& cont;
-    PvCollector(Material m, std::set<const TGeoNode*>& c) : material(m), cont(c) {}
+    PvCollector(Material mat, std::set<const TGeoNode*>& c) : material(mat), cont(c) {}
     void operator()(TGeoNode* pv)    {
-      Volume   v = pv->GetVolume();
-      Material m = v.material();
-      if ( m.ptr() == material.ptr() )  {
+      Volume   vol = pv->GetVolume();
+      Material mat = vol.material();
+      if ( mat.ptr() == material.ptr() )  {
         cont.insert(pv);
       }
       for (Int_t idau = 0, ndau = pv->GetNdaughters(); idau < ndau; ++idau)
-- 
GitLab