From 88b5613f4688694f6fc7d259a89f421331e79578 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 11 Sep 2023 10:09:05 -0600 Subject: [PATCH] suppress warning about memcpy() use on a struct/class --- gtk2_ardour/editor_sections.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_sections.cc b/gtk2_ardour/editor_sections.cc index 0bc7a955e4..97b7d386f7 100644 --- a/gtk2_ardour/editor_sections.cc +++ b/gtk2_ardour/editor_sections.cc @@ -388,7 +388,7 @@ EditorSections::drag_data_received (Glib::RefPtr 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 */