suppress warning about memcpy() use on a struct/class
This commit is contained in:
parent
734a62101f
commit
88b5613f46
@ -388,7 +388,7 @@ EditorSections::drag_data_received (Glib::RefPtr<Gdk::DragContext> const& contex
|
|||||||
/* Section is POD, memcpy is fine.
|
/* Section is POD, memcpy is fine.
|
||||||
* data is free()ed by ~Gtk::SelectionData */
|
* data is free()ed by ~Gtk::SelectionData */
|
||||||
Section s;
|
Section s;
|
||||||
memcpy (&s, data.get_data (), sizeof (Section));
|
memcpy ((void*) &s, data.get_data (), sizeof (Section));
|
||||||
|
|
||||||
if (op == CutPasteSection && to > s.start) {
|
if (op == CutPasteSection && to > s.start) {
|
||||||
/* offset/ripple `to` when using CutPasteSection */
|
/* offset/ripple `to` when using CutPasteSection */
|
||||||
|
Loading…
Reference in New Issue
Block a user