Skip to content
Snippets Groups Projects
Commit a5e48ea6 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

pvNVIDIAIndeX: fix `clang-tidy` `bugprone-undefined-memory-manipulation` lints

These are suppressed because `mi::math::Vector` is supposed to be a POD
type, but is not for some reason. This should be investigated.
parent 6b03c600
No related branches found
No related tags found
No related merge requests found
......@@ -438,6 +438,7 @@ nv::index::IDistributed_data_subset* vtknvindex_irregular_volume_importer::creat
}
// Copy vertices.
// NOLINTNEXTLINE(bugprone-undefined-memory-manipulation)
memcpy(mesh_storage.vertices, subset_vertices.data(),
subset_vertices.size() * sizeof(mesh_storage.vertices[0]));
......
......@@ -431,6 +431,7 @@ bool vtknvindex_regular_volume_properties::write_shared_memory(
mi::math::Vector<mi::Float64, 3> point_pv;
ugrid->GetPoint(i, point_pv.begin());
const mi::math::Vector<mi::Float32, 3> point_index(point_pv);
// NOLINTNEXTLINE(bugprone-undefined-memory-manipulation)
memcpy(shm_offset, &point_index, size_elm);
shm_offset += size_elm;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment