Messages in this thread Patch in this message | | | Date | Sun, 4 Jul 2004 17:01:44 +1000 | From | Anton Blanchard <> | Subject | Re: [PATCH] gcc 3.5 fixes |
| |
gcc 3.5 is warning about unused static variables, add __attribute_unused__ to the 2 places to silence it.
Signed-off-by: Anton Blanchard <anton@samba.org>
diff -ur /root/toolchain/linux-2.5-bk/kernel/configs.c linux-2.5-bk/kernel/configs.c --- /root/toolchain/linux-2.5-bk/kernel/configs.c 2004-06-25 09:13:15.000000000 +0000 +++ linux-2.5-bk/kernel/configs.c 2004-07-03 11:03:45.019878184 +0000 @@ -58,7 +58,7 @@ /**************************************************/ /* globals and useful constants */ -static const char IKCONFIG_VERSION[] __initdata = "0.7"; +static const char IKCONFIG_VERSION[] __attribute_used__ __initdata = "0.7"; static ssize_t ikconfig_read_current(struct file *file, char __user *buf, diff -ur /root/toolchain/linux-2.5-bk/lib/zlib_inflate/inftrees.c linux-2.5-bk/lib/zlib_inflate/inftrees.c --- /root/toolchain/linux-2.5-bk/lib/zlib_inflate/inftrees.c 2004-02-22 13:48:07.000000000 +0000 +++ linux-2.5-bk/lib/zlib_inflate/inftrees.c 2004-07-03 11:27:06.633933752 +0000 @@ -7,7 +7,7 @@ #include "inftrees.h" #include "infutil.h" -static const char inflate_copyright[] = +static const char inflate_copyright[] __attribute_used__ = " inflate 1.1.3 Copyright 1995-1998 Mark Adler "; /* If you use the zlib library in a product, an acknowledgment is welcome - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |