mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 17:57:02 +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);
|
TopExp_Explorer exp(axis_shape, TopAbs_EDGE);
|
||||||
TopoDS_Edge axis_edge;
|
TopoDS_Edge axis_edge;
|
||||||
int edge_count = 0;
|
|
||||||
|
|
||||||
if (exp.More()) {
|
if (exp.More()) {
|
||||||
axis_edge = TopoDS::Edge(exp.Current());
|
axis_edge = TopoDS::Edge(exp.Current());
|
||||||
++ edge_count;
|
|
||||||
} else {
|
} else {
|
||||||
Logger::Message(Logger::LOG_WARNING, "No edge found in axis representation:", product);
|
Logger::Message(Logger::LOG_WARNING, "No edge found in axis representation:", product);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user