diff options
author | Stephen Warren <swarren@nvidia.com> | 2011-10-12 12:46:20 -0600 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2011-12-15 11:52:29 +0530 |
commit | 9577c190b2ebaad0b1bb564c54fb1fcbaa2ae17c (patch) | |
tree | c391c9ecedcdf693a7c2f9563ae19e8f89090cbd /drivers/net/wireless | |
parent | b13cc5ba26bbe26e60ba84c852fa3b1cea8e48f2 (diff) |
net: wireless: bcm4329: Fix build with gcc-4.6.1
Add a couple -Wno-error options when building with the new toolchain;
it's stricter. These can be removed once the code is fixed not to
cause warnings (see bug 888158).
Bug 830289
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Matt Pedro <mapedro@nvidia.com>
(cherry picked from commit 4a2bbb6dc6ab70a8e562d8db4d6016c28c290ce0)
Change-Id: I9944bf4a5fac005fed5ff5d92c38c5be32ea6f55
Reviewed-on: http://git-master/r/68740
Tested-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/bcm4329/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/bcm4329/Makefile b/drivers/net/wireless/bcm4329/Makefile index 2e32c4f41b37..7714efce4af5 100644 --- a/drivers/net/wireless/bcm4329/Makefile +++ b/drivers/net/wireless/bcm4329/Makefile @@ -32,6 +32,15 @@ else DHDCFLAGS += -DSDIO_ISR_THREAD endif +ifeq ($(TARGET_USE_NEW_TOOLCHAIN),1) + # gcc-4.6.1 warns a lot more than previous compilers. + # The following is the minimal set of warnings that need to not error out + # the build for it to succeed. -Wno-error would also work, but this + # explicit list allows them to be fixed in smaller chunks. + DHDCFLAGS += -Wno-error=unused-but-set-variable + DHDCFLAGS += -Wno-error=array-bounds +endif + DHDOFILES = dhd_linux.o linux_osl.o bcmutils.o dhd_common.o dhd_custom_gpio.o \ wl_iw.o siutils.o sbutils.o aiutils.o hndpmu.o bcmwifi.o dhd_sdio.o \ dhd_linux_sched.o dhd_cdc.o bcmsdh_sdmmc.o bcmsdh.o bcmsdh_linux.o \ |