hwmon/tegra: treat compilation warning as error
schowdary [Tue, 24 Jul 2012 13:30:27 +0000 (18:30 +0530)]
- Add compilation flag to treat warning as error

bug 949219

Change-Id: I1106e3d7d13e0c6305a8709ddfdf85e7652f26a1
Signed-off-by: schowdary <schowdary@nvidia.com>

drivers/hwmon/Makefile

index d979748..66af425 100644 (file)
@@ -126,6 +126,7 @@ obj-$(CONFIG_SENSORS_WM831X)        += wm831x-hwmon.o
 obj-$(CONFIG_SENSORS_WM8350)   += wm8350-hwmon.o
 obj-$(CONFIG_SENSORS_INA219)   += ina219.o
 obj-$(CONFIG_SENSORS_INA230)   += ina230.o
+CFLAGS_tegra-tsensor.o          = -Werror
 obj-$(CONFIG_SENSORS_TEGRA_TSENSOR) += tegra-tsensor.o
 
 obj-$(CONFIG_PMBUS)            += pmbus/