[gnome-builder] beautifier: fix warnings



commit e6e68d8688e173e0916f6ac08b05f6241463a725
Author: Christian Hergert <chergert redhat com>
Date:   Tue Feb 23 21:30:08 2021 -0800

    beautifier: fix warnings

 src/plugins/beautifier/gb-beautifier-process.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/beautifier/gb-beautifier-process.c b/src/plugins/beautifier/gb-beautifier-process.c
index 60f93f9dc..055ee3b34 100644
--- a/src/plugins/beautifier/gb-beautifier-process.c
+++ b/src/plugins/beautifier/gb-beautifier-process.c
@@ -156,7 +156,7 @@ gb_beautifier_process_create_generic (GbBeautifierEditorAddin  *self,
   command_args_expand (self, state->command_args_strs, state);
 
   launcher = ide_subprocess_launcher_new (G_SUBPROCESS_FLAGS_STDOUT_PIPE | G_SUBPROCESS_FLAGS_STDERR_PIPE);
-  ide_subprocess_launcher_set_argv (launcher, (gchar**)state->command_args_strs->pdata);
+  ide_subprocess_launcher_set_argv (launcher, (const gchar * const *)state->command_args_strs->pdata);
   /* This is to allow beautifiers to find the project's formatting configuration file. */
   ide_subprocess_launcher_set_cwd (launcher, cwd);
   /* Keep the environment like PATH or more specific ones like CARGO_HOME. */
@@ -228,7 +228,7 @@ gb_beautifier_process_create_for_clang_format (GbBeautifierEditorAddin  *self,
 
   launcher = ide_subprocess_launcher_new (G_SUBPROCESS_FLAGS_STDOUT_PIPE | G_SUBPROCESS_FLAGS_STDERR_PIPE);
   ide_subprocess_launcher_set_cwd (launcher, tmp_workdir);
-  ide_subprocess_launcher_set_argv (launcher, (gchar**)args->pdata);
+  ide_subprocess_launcher_set_argv (launcher, (const gchar * const *)args->pdata);
   subprocess = ide_subprocess_launcher_spawn (launcher,
                                               NULL,
                                               error);


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