[gnome-applets/wip/muktupavels/werror] drivemount: fix -Wdiscarded-qualifiers warnings



commit 5ec9d5a200934c9450cefe2a0ce9ab77260a8dd4
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Apr 4 22:11:32 2020 +0300

    drivemount: fix -Wdiscarded-qualifiers warnings

 gnome-applets/drivemount/drive-button.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-applets/drivemount/drive-button.c b/gnome-applets/drivemount/drive-button.c
index 227bc1ed3..08113872e 100644
--- a/gnome-applets/drivemount/drive-button.c
+++ b/gnome-applets/drivemount/drive-button.c
@@ -571,7 +571,7 @@ open_drive (DriveButton *self, GtkWidget *item)
 static void
 gvm_run_command (const char *device, const char *command, const char *path)
 {
-       char *argv[4];
+       const char *argv[4];
        gchar *new_command;
        GError *error = NULL;
        GString *exec = g_string_new (NULL);
@@ -606,7 +606,7 @@ gvm_run_command (const char *device, const char *command, const char *path)
        argv[2] = exec->str;
        argv[3] = NULL;
 
-       g_spawn_async (g_get_home_dir (), argv, NULL, 0, NULL, NULL,
+       g_spawn_async (g_get_home_dir (), (char **) argv, NULL, 0, NULL, NULL,
                       NULL, &error);
        if (error) {
                g_warning ("failed to exec %s: %s\n", exec->str, error->message);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]