diff --git a/src/hdf5_usecases/lod.cpp b/src/hdf5_usecases/lod.cpp index 2f767be2c0..f759e0e455 100644 --- a/src/hdf5_usecases/lod.cpp +++ b/src/hdf5_usecases/lod.cpp @@ -121,7 +121,7 @@ void find_geometric_types(IfcParse::IfcFile& f, const std::string& tfn) { std::for_each(connection_geom->begin(), connection_geom->end(), vist_geometric); std::function fn; - fn = [&f, &geometric_instances, &other_types, &fn, &to_watch](IfcUtil::IfcBaseClass* root, IfcUtil::IfcBaseClass* inst) { + fn = [&f, &geometric_instances, &other_types, &fn](IfcUtil::IfcBaseClass* root, IfcUtil::IfcBaseClass* inst) { if (geometric_instances.find(inst) == geometric_instances.end()) { auto ty = inst->declaration().type(); other_types.insert(ty);