13
0

suppress warning about memcpy() use on a struct/class

This commit is contained in:
Paul Davis 2023-09-11 10:09:05 -06:00
parent 734a62101f
commit 88b5613f46

View File

@ -388,7 +388,7 @@ EditorSections::drag_data_received (Glib::RefPtr<Gdk::DragContext> const& contex
/* Section is POD, memcpy is fine.
* data is free()ed by ~Gtk::SelectionData */
Section s;
memcpy (&s, data.get_data (), sizeof (Section));
memcpy ((void*) &s, data.get_data (), sizeof (Section));
if (op == CutPasteSection && to > s.start) {
/* offset/ripple `to` when using CutPasteSection */