From 0ab86fcec1f31122e96553191766339b667e1f70 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Thu, 2 Jun 2011 20:00:47 +0000 Subject: wct4xxp: Set -Wno-unused-but-set-variable compiler option if available. Turn this option on for the entire wct4xxp driver in order to quiet the warnings in the oct612x source files. These files are from a vendor drop and the goal is to limit the deviations from the vendor if possible. Signed-off-by: Shaun Ruffell Acked-by: Tzafrir Cohen git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9930 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wct4xxp/Kbuild | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'drivers/dahdi/wct4xxp/Kbuild') diff --git a/drivers/dahdi/wct4xxp/Kbuild b/drivers/dahdi/wct4xxp/Kbuild index 39b786b..a8fbd9d 100644 --- a/drivers/dahdi/wct4xxp/Kbuild +++ b/drivers/dahdi/wct4xxp/Kbuild @@ -4,6 +4,12 @@ FIRM_DIR := ../firmware EXTRA_CFLAGS += -I$(src)/.. $(shell $(src)/../oct612x/octasic-helper cflags $(src)/../oct612x) -Wno-undef +# The OCT612X source files are from a vendor drop and we do not want to edit +# them to make this warning go away. Therefore, turn off the +# unused-but-set-variable warning for this driver. + +EXTRA_CFLAGS += $(call cc-option, -Wno-unused-but-set-variable) + ifeq ($(HOTPLUG_FIRMWARE),yes) EXTRA_CFLAGS+=-DHOTPLUG_FIRMWARE endif -- cgit v1.2.3