diff --git a/DDCond/src/ConditionsDependencyHandler.cpp b/DDCond/src/ConditionsDependencyHandler.cpp
index 97aee01fe9512660146186ccfe860580248da440..3088d1b588fe94dbf060e42cbc6f84d97eedc667 100644
--- a/DDCond/src/ConditionsDependencyHandler.cpp
+++ b/DDCond/src/ConditionsDependencyHandler.cpp
@@ -108,7 +108,6 @@ void ConditionsDependencyHandler::compute()   {
 /// 2nd pass:  Handler callback for the second turn to resolve missing dependencies
 void ConditionsDependencyHandler::resolve()    {
   PrintLevel prt_lvl = INFO;
-  size_t num_resolved = 0;
   std::vector<Condition> tmp;
   std::map<IOV::Key,std::vector<Condition> > work_pools;
   Work* w;
@@ -120,7 +119,6 @@ void ConditionsDependencyHandler::resolve()    {
     if ( w->state != RESOLVED )   {
       w->resolve(m_currentWork);
     }
-    ++num_resolved;
     // Fill an empty map of condition vectors for the block inserts
     auto ret = work_pools.emplace(w->iov->keyData,tmp);
     if ( ret.second )   {
diff --git a/DDG4/plugins/Geant4RegexSensitivesConstruction.cpp b/DDG4/plugins/Geant4RegexSensitivesConstruction.cpp
index cdd0e158a58f425c26ec88d6d46e16c6bdf2f503..6bb17fecbe96cf3c1e314473d78103021aac380d 100644
--- a/DDG4/plugins/Geant4RegexSensitivesConstruction.cpp
+++ b/DDG4/plugins/Geant4RegexSensitivesConstruction.cpp
@@ -102,9 +102,9 @@ Geant4RegexSensitivesConstruction::collect_volumes(std::set<Volume>&  volumes,
   // Try to minimize a bit the number of regex matches.
   if ( volumes.find(pv.volume()) == volumes.end() )  {
     if( !path.empty() )  {
-      for( const auto& m : matches )  {
+      for( const auto& match : matches )  {
         std::smatch sm;
-        bool stat = std::regex_match(path, sm, m);
+        bool stat = std::regex_match(path, sm, match);
         if( stat )  {
           volumes.insert(pv.volume());
           ++count;
diff --git a/UtilityApps/src/next_event_dummy.cpp b/UtilityApps/src/next_event_dummy.cpp
index c5eb6da93d6e1d5bf65a6f931da20bf0671e379e..e2c81cd5a79187f4d78e5568d9717eae9d3ac22b 100644
--- a/UtilityApps/src/next_event_dummy.cpp
+++ b/UtilityApps/src/next_event_dummy.cpp
@@ -18,7 +18,7 @@ TEveStraightLineSet* lineset(Int_t nlines = 40, Int_t nmarkers = 4) ;
 
 void next_event(){
 
-  static int count = 1 ;
+  // static int count = 1 ;
 
   std::cout <<  " next_event called - nothing to do ... " << std::endl ;
 
@@ -32,7 +32,7 @@ void next_event(){
   
   gEve->Redraw3D();
   
-  count += 3 ;
+  // count += 3 ;
 }