From 468fc6ffe043bc6aebc7ebf32d115ff3f759e1d1 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Wed, 4 Apr 2012 18:45:17 +0200 Subject: [PATCH] frontends/gconf: fix warning about unused variable As we hard-code the path to our glade file, this variable is no longer used, and thus generates a warning. Signed-off-by: "Yann E. MORIN" --- frontends/gconf/gconf.c | 2 ++ frontends/gconf/gconf.c.patch | 12 +++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/frontends/gconf/gconf.c b/frontends/gconf/gconf.c index a40292c..b73a4f1 100644 --- a/frontends/gconf/gconf.c +++ b/frontends/gconf/gconf.c @@ -1468,7 +1468,9 @@ void fixup_rootmenu(struct menu *menu) int main(int ac, char *av[]) { const char *name; +#if 0 char *env; +#endif gchar *glade_file = GUI_PATH; bindtextdomain(PACKAGE, LOCALEDIR); diff --git a/frontends/gconf/gconf.c.patch b/frontends/gconf/gconf.c.patch index c27f650..923dec9 100644 --- a/frontends/gconf/gconf.c.patch +++ b/frontends/gconf/gconf.c.patch @@ -10,7 +10,17 @@ diff --git a/frontends/gconf/gconf.c b/frontends/gconf/gconf.c #include #include -@@ -1469,7 +1469,7 @@ +@@ -1468,7 +1468,9 @@ + int main(int ac, char *av[]) + { + const char *name; ++#if 0 + char *env; ++#endif + gchar *glade_file = GUI_PATH; + + bindtextdomain(PACKAGE, LOCALEDIR); +@@ -1469,7 +1471,7 @@ { const char *name; char *env; -- 2.39.5