mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 02:23:34 +00:00
Couple warning fixes (#139)
* Use -Wno-tautological-constant-out-of-range-compare for Clang (these warnings come from the sanity checks in generated IfcXXX files). * Remove unused variable and typedefs + suppress uint->bool conversion warnings (MSVC) + add note about Clang in README * MSVC uint->bool convesion warning fixes when IFC4 is defined
This commit is contained in:
committed by
Thomas Krijnen
parent
8a92e1a766
commit
a171b2b9b0
@@ -2116,7 +2116,7 @@ bool IfcGeom::Kernel::split_solid_by_shell(const TopoDS_Shape& input, const Topo
|
||||
|
||||
for (int i = 0; i < 2; ++i) {
|
||||
TopoDS_Shape& shape = i == 0 ? front : back;
|
||||
const bool result_is_null = is_null[i] = shape.IsNull();
|
||||
const bool result_is_null = is_null[i] = shape.IsNull() != 0;
|
||||
if (result_is_null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user