From: Yann E. MORIN" Date: Wed, 4 Apr 2012 16:45:17 +0000 (+0200) Subject: frontends/gconf: fix warning about unused variable X-Git-Tag: v3.4.0-0~26 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=468fc6ffe043bc6aebc7ebf32d115ff3f759e1d1;p=kconfig-frontends 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" --- 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;