[svn-commits] sruffell: linux/trunk r9930 - /linux/trunk/drivers/dahdi/wct4xxp/Kbuild

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jun 2 15:00:50 CDT 2011


Author: sruffell
Date: Thu Jun  2 15:00:47 2011
New Revision: 9930

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9930
Log:
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 <sruffell at digium.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>

Modified:
    linux/trunk/drivers/dahdi/wct4xxp/Kbuild

Modified: linux/trunk/drivers/dahdi/wct4xxp/Kbuild
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wct4xxp/Kbuild?view=diff&rev=9930&r1=9929&r2=9930
==============================================================================
--- linux/trunk/drivers/dahdi/wct4xxp/Kbuild (original)
+++ linux/trunk/drivers/dahdi/wct4xxp/Kbuild Thu Jun  2 15:00:47 2011
@@ -3,6 +3,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




More information about the svn-commits mailing list