Eliminate some warnings

This commit is contained in:
Thomas Krijnen
2025-08-27 11:03:16 +02:00
parent b2c20b15b4
commit a958f1373c
2 changed files with 8 additions and 4 deletions
+4
View File
@@ -9,6 +9,10 @@ namespace ifcopenshell {
struct profile_point {
std::array<double, 2> xy;
boost::optional<double> radius;
profile_point(const std::array<double, 2>& p, const boost::optional<double>& r = boost::none)
: xy(p), radius(r) {
}
};
struct profile_point_with_edges {
+4 -4
View File
@@ -298,22 +298,22 @@ struct AttributeValue {
AttributeValue()
: index_(0)
, array_((const in_memory_attribute_storage*)nullptr)
, storage_model_(0)
, array_((const in_memory_attribute_storage*)nullptr)
{}
AttributeValue(const in_memory_attribute_storage* arr, uint8_t index)
: index_(index)
, array_(arr)
, storage_model_(0)
, array_(arr)
{}
AttributeValue(IfcParse::impl::rocks_db_file_storage* db, size_t instance_name, uint8_t entity_or_type, uint8_t index)
: index_(index)
, array_(db)
, storage_model_(1)
, instance_name_(instance_name)
, entity_or_type_(entity_or_type)
, instance_name_(instance_name)
, array_(db)
{}
operator int() const;