Skip to contentSkip to conversation

ipw2200: fix a gcc compile warning

TRIVIAL jens m. noedler 2 participants 2 messages May 18, 2006 – May 19, 2006 802.11 (including cfg80211/NL80211)

lore
Share & tools
lore
#0 lore 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

---

net/wireless/ipw2200.c 2006-05-18 16:26:58.000000000 +0200 renamed from net/wireless/ipw2200.c.orig 2006-05-18 16:26:39.000000000 +0200 +4 -1
@@ -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;
 
Signature · 4 lines
jens m. noedler
  [email protected]
  pgp: 0x9f0920bb
  http://noedler.de
#1 lore raw
Quoted 4 lines · jens m. noedler
net/wireless/ipw2200.c 2006-05-18 16:26:58.000000000 +0200 renamed from net/wireless/ipw2200.c.orig 2006-05-18 16:26:39.000000000 +0200 +0 -0
@@ -45,8 +45,11 @@ MODULE_VERSION(DRV_VERSION);
 MODULE_AUTHOR(DRV_COPYRIGHT);

net/wireless/ipw2200.c 2006-05-18 16:26:58.000000000 +0200 MODULE_VERSION(DRV_VERSION); · line 54

Quoted 10 lines
net/wireless/ipw2200.c 2006-05-18 16:26:58.000000000 +0200 renamed from net/wireless/ipw2200.c.orig 2006-05-18 16:26:39.000000000 +0200 +4 -1
 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;

The patch is already in wireless-2.6 GIT. Thank you anyway.

Thanks,
-yi