linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] i2c: Build core and algo drivers with -Wshadow
@ 2010-02-16 11:21 Jean Delvare
       [not found] ` <20100216122152.29dbbeb5-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Jean Delvare @ 2010-02-16 11:21 UTC (permalink / raw)
  To: Linux I2C; +Cc: Jonathan Cameron, Wolfram Sang

I like building with -Wshadow, it helps catch bugs or at least bad
choices in variable names.

Signed-off-by: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
Cc: Jonathan Cameron <jic23-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>
Cc: Wolfram Sang <w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
---
Any objection?

 drivers/hwmon/Makefile      |    1 +
 drivers/i2c/Makefile        |    1 +
 drivers/i2c/algos/Makefile  |    1 +
 drivers/i2c/busses/Makefile |    1 +
 drivers/i2c/chips/Makefile  |    1 +
 5 files changed, 5 insertions(+)

--- linux-2.6.33-rc8.orig/drivers/i2c/Makefile	2010-02-16 10:59:43.000000000 +0100
+++ linux-2.6.33-rc8/drivers/i2c/Makefile	2010-02-16 11:09:07.000000000 +0100
@@ -8,6 +8,7 @@ obj-$(CONFIG_I2C_SMBUS)		+= i2c-smbus.o
 obj-$(CONFIG_I2C_CHARDEV)	+= i2c-dev.o
 obj-y				+= busses/ chips/ algos/
 
+EXTRA_CFLAGS += -Wshadow
 ifeq ($(CONFIG_I2C_DEBUG_CORE),y)
 EXTRA_CFLAGS += -DDEBUG
 endif
--- linux-2.6.33-rc8.orig/drivers/i2c/algos/Makefile	2009-06-10 05:05:27.000000000 +0200
+++ linux-2.6.33-rc8/drivers/i2c/algos/Makefile	2010-02-16 11:19:59.000000000 +0100
@@ -6,6 +6,7 @@ obj-$(CONFIG_I2C_ALGOBIT)	+= i2c-algo-bi
 obj-$(CONFIG_I2C_ALGOPCF)	+= i2c-algo-pcf.o
 obj-$(CONFIG_I2C_ALGOPCA)	+= i2c-algo-pca.o
 
+EXTRA_CFLAGS += -Wshadow
 ifeq ($(CONFIG_I2C_DEBUG_ALGO),y)
 EXTRA_CFLAGS += -DDEBUG
 endif


-- 
Jean Delvare

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-02-17 13:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-16 11:21 [PATCH] i2c: Build core and algo drivers with -Wshadow Jean Delvare
     [not found] ` <20100216122152.29dbbeb5-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2010-02-16 20:27   ` Wolfram Sang
     [not found]     ` <20100216202715.GC17428-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2010-02-16 21:53       ` Jean Delvare
     [not found]         ` <20100216225352.1c4c3893-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2010-02-17 13:35           ` Wolfram Sang
2010-02-17 13:44           ` Jean Delvare

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).