[Compile Regression in 2.4.25-pre8][PATCH 25/42]

Kronos
2004-02-02T20:01:14Z

it8181fb.c:162: warning: `fontname' defined but not used

fontname is used only when the driver is modular. The initializer is
useless since the variable is static.

diff -Nru -X dontdiff linux-2.4-vanilla/drivers/video/it8181fb.c linux-2.4/drivers/video/it8181fb.c
--- linux-2.4-vanilla/drivers/video/it8181fb.c Sat Jan 31 15:54:42 2004
+++ linux-2.4/drivers/video/it8181fb.c Sat Jan 31 18:12:50 2004
@@ -159,7 +159,9 @@
#define DEFAULT_CONFIG_OFFSET 0

static const char default_mode[] = "800x600-70";
-static char __initdata fontname[40] = { 0 };
+#ifndef MODULE
+static char __initdata fontname[40];
+#endif
static const char *mode_option __initdata = NULL;
static int default_bpp __initdata = DEFAULT_BPP;
static int default_res __initdata = DEFAULT_RES;

--
Reply-To: kronos@kronoz.cjb.net
Home: http://kronoz.cjb.net
No matter what you choose, you're still a luser.