mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
ifcgeom: fix compiler warning -Wunused-but-set-variable
This commit is contained in:
committed by
Thomas Krijnen
parent
6816ad5c0f
commit
fe4823681f
@@ -1084,11 +1084,9 @@ bool IfcGeom::Kernel::convert_layerset(const IfcSchema::IfcProduct* product, std
|
||||
|
||||
TopExp_Explorer exp(axis_shape, TopAbs_EDGE);
|
||||
TopoDS_Edge axis_edge;
|
||||
int edge_count = 0;
|
||||
|
||||
if (exp.More()) {
|
||||
axis_edge = TopoDS::Edge(exp.Current());
|
||||
++ edge_count;
|
||||
} else {
|
||||
Logger::Message(Logger::LOG_WARNING, "No edge found in axis representation:", product);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user