diff --git a/src/tools/src/npdet_to_teve.cxx b/src/tools/src/npdet_to_teve.cxx
index b310b1e33334b6a0a08c58ed067e5e6cf3706b11..e45c4d5c3647a3676e9034e3c36f49ed161fb351 100644
--- a/src/tools/src/npdet_to_teve.cxx
+++ b/src/tools/src/npdet_to_teve.cxx
@@ -266,7 +266,7 @@ void run_part_mode(const settings& s)
       //return;
     }
 
-    int         istate = gGeoManager->GetCurrentNodeId();
+    //int         istate = gGeoManager->GetCurrentNodeId();
     std::string ipath  = gGeoManager->GetPath();
 
     auto pcolor        = s.part_name_colors.find(p)->second;
@@ -286,7 +286,7 @@ void run_part_mode(const settings& s)
     eve_nodes[0] = res;
 
     TGeoIterator nextNode( node->GetVolume() );
-    int path_index = 0;
+    //int path_index = 0;
     TGeoNode* currentNode = nullptr;
 
     while( (currentNode = nextNode()) ) {