mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Anton Blanchard <anton@samba.org>
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] gcc 3.5 fixes
Date: Sun, 4 Jul 2004 17:01:44 +1000	[thread overview]
Message-ID: <20040704070144.GB4923@krispykreme> (raw)
In-Reply-To: <20040704065811.GA4923@krispykreme>


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


  reply	other threads:[~2004-07-04  7:03 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-04  6:58 Anton Blanchard
2004-07-04  7:01 ` Anton Blanchard [this message]
2004-07-04  7:07   ` Anton Blanchard
2004-07-04 10:24   ` Bartlomiej Zolnierkiewicz
2004-07-04 11:04     ` Anton Blanchard
2004-07-06 15:28       ` Randy.Dunlap
2004-07-11 10:23         ` Anton Blanchard
     [not found] <2e9is-5YT-1@gated-at.bofh.it>
     [not found] ` <2e9iu-5YT-5@gated-at.bofh.it>
     [not found]   ` <2ecq2-80i-1@gated-at.bofh.it>
     [not found]     ` <7ab39013.0407042237.40ea9035@posting.google.com>
     [not found]       ` <20040705064010.C9BFB5F7AA@attila.bofh.it>
2004-07-05 16:51         ` Mark Adler
2004-07-05 21:44           ` Paul Jackson
2004-07-06  1:16             ` Mark Adler
2004-07-06  1:45               ` Paul Jackson
2004-07-06  3:51               ` Jesse Stockall
2004-07-06  4:43                 ` Mark Adler
2004-07-06  6:11                   ` bert hubert
2004-07-06  6:46                     ` David Woodhouse
2004-07-06 15:02                       ` Mark Adler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040704070144.GB4923@krispykreme \
    --to=anton@samba.org \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®