All of lore.kernel.org
 help / color / mirror / Atom feed
From: "jens m. noedler" <noedler@web.de>
To: linux-kernel@vger.kernel.org
Cc: trivial@kernel.org, ipw2100-devel@lists.sourceforge.net
Subject: [TRIVIAL] ipw2200: fix a gcc compile warning
Date: Thu, 18 May 2006 16:59:58 +0200	[thread overview]
Message-ID: <446C8BEE.2080807@web.de> (raw)

Hi,

If one compiles the ipw2200 module without having CONFIG_IPW2200_DEBUG
set gcc will warn. This patch fixes the following warning and applies 
to 2.6.17-rc4-git6.

  CC [M]  drivers/net/wireless/ipw2200.o
drivers/net/wireless/ipw2200.c:50: Warnung: `debug' defined but not used

Kind regards, Jens Nödler


Signed-off-by: jens m. noedler <noedler@web.de>

---

--- drivers/net/wireless/ipw2200.c.orig 2006-05-18 16:26:39.000000000 +0200
+++ drivers/net/wireless/ipw2200.c      2006-05-18 16:26:58.000000000 +0200
@@ -45,8 +45,11 @@ MODULE_VERSION(DRV_VERSION);
 MODULE_AUTHOR(DRV_COPYRIGHT);
 MODULE_LICENSE("GPL");

-static int cmdlog = 0;
+#ifdef CONFIG_IPW2200_DEBUG
 static int debug = 0;
+#endif
+
+static int cmdlog = 0;
 static int channel = 0;
 static int mode = 0;


-- 
jens m. noedler
  noedler@web.de
  pgp: 0x9f0920bb
  http://noedler.de

             reply	other threads:[~2006-05-18 15:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-18 14:59 jens m. noedler [this message]
2006-05-19  2:42 ` [Ipw2100-devel] [TRIVIAL] ipw2200: fix a gcc compile warning Zhu Yi

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=446C8BEE.2080807@web.de \
    --to=noedler@web.de \
    --cc=ipw2100-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trivial@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.