From fffdd9e66f0b04ad59f496ad8ee8c64fbec1b93d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Meyer?= Date: Tue, 12 Nov 2019 10:06:05 +0100 Subject: [PATCH 6/6] Silence warning about casting void ** to char ** --- mousepad/mousepad-dbus.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mousepad/mousepad-dbus.c b/mousepad/mousepad-dbus.c index a0c0a5f..f735598 100644 --- a/mousepad/mousepad-dbus.c +++ b/mousepad/mousepad-dbus.c @@ -256,8 +256,12 @@ mousepad_dbus_client_launch_files (gchar **filenames, if (proxy) { - succeed = mousepad_dbus_service_call_launch_files_sync ( - proxy, utf8_dir, utf8_filenames->pdata, NULL, error); + /* make sure casting void ** to char ** is safe */ + const gchar *const *names; + G_STATIC_ASSERT(sizeof(char *) == sizeof(void *)); + names = (const gchar *const *)utf8_filenames->pdata; + succeed = mousepad_dbus_service_call_launch_files_sync ( + proxy, utf8_dir, names, NULL, error); g_object_unref (proxy); } -- 2.21.0