[gnome-builder] gettext: ignore const when building ptr array
- From: Christian Hergert <chergert src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-builder] gettext: ignore const when building ptr array
 
- Date: Thu, 21 Jul 2016 00:06:52 +0000 (UTC)
 
commit 7213e50d3aa1b53cc73ee28f33c3e57dbb683050
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jul 20 17:06:10 2016 -0700
    gettext: ignore const when building ptr array
    
    The array consists of only const strings. It's fine to just cast to
    gchar* for the duration of the GPtrArray.
    
    Fixes trivial warnings.
 plugins/gettext/ide-gettext-diagnostic-provider.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/gettext/ide-gettext-diagnostic-provider.c 
b/plugins/gettext/ide-gettext-diagnostic-provider.c
index e757926..e46eeec 100644
--- a/plugins/gettext/ide-gettext-diagnostic-provider.c
+++ b/plugins/gettext/ide-gettext-diagnostic-provider.c
@@ -447,10 +447,10 @@ populate_cache (EggTaskCache  *cache,
   g_ptr_array_add (args, "-k_");
   g_ptr_array_add (args, "-kN_");
   g_ptr_array_add (args, "-L");
-  g_ptr_array_add (args, xgettext_lang);
+  g_ptr_array_add (args, (gchar *)xgettext_lang);
   g_ptr_array_add (args, "-o");
   g_ptr_array_add (args, "-");
-  g_ptr_array_add (args, temp_path);
+  g_ptr_array_add (args, (gchar *)temp_path);
   g_ptr_array_add (args, NULL);
 
 #ifdef IDE_ENABLE_TRACE
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]