[gtk+/wip/otte/gadget: 1/5] imcontextsiple: Fix unused variable warning



commit 1f9d6bbd1f29bb24fbd4c9a4f37a87d48564d64b
Author: Benjamin Otte <otte redhat com>
Date:   Mon Nov 16 01:40:08 2015 +0100

    imcontextsiple: Fix unused variable warning
    
    Happens only in ifdef X11 case.

 gtk/gtkimcontextsimple.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c
index 41199f6..435c898 100644
--- a/gtk/gtkimcontextsimple.c
+++ b/gtk/gtkimcontextsimple.c
@@ -134,11 +134,12 @@ static gchar*
 get_x11_compose_file_dir (void)
 {
   gchar* compose_file_dir;
-  gchar* datadir = NULL;
 
 #if defined (GDK_WINDOWING_X11) || defined (GDK_WINDOWING_WAYLAND)
   compose_file_dir = g_strdup (X11_DATA_PREFIX "/share/X11/locale");
 #else
+  gchar* datadir = NULL;
+
   datadir = g_strdup (_gtk_get_datadir ());
   compose_file_dir = g_build_filename (datadir, "X11", "locale", NULL);
   g_free (datadir);


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