slmpathan / bcmon

Automatically exported from code.google.com/p/bcmon
0 stars 0 forks source link

array subscript is above array bounds [-Werror=array-bounds] errors in wl_iw.c #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1. Copy your sources to drivers/net/wireless/bcm4329/
2. Enable BCM4329 [=m] in menuconfig
3. Try to build using make

What is the expected output? 
  CC [M]  drivers/net/wireless/bcm4329/wl_iw.o

What do you see instead?
  CC [M]  drivers/net/wireless/bcm4329/wl_iw.o
drivers/net/wireless/bcm4329/wl_iw.c: In function 'wl_iw_set_pmksa':
drivers/net/wireless/bcm4329/wl_iw.c:5162:5: error: array subscript is above 
array bounds [-Werror=array-bounds]
drivers/net/wireless/bcm4329/wl_iw.c:5165:5: error: array subscript is above 
array bounds [-Werror=array-bounds]
cc1: all warnings being treated as errors

What version of the product are you using? On what operating system?
Svn trunk at revision 11, kernel Linux/arm 3.0.48-ck1, toolchain 
linaro-android_toolchain-4.7-2012.07

Original issue reported on code.google.com by coy...@starrk.pp.ru on 28 Oct 2012 at 12:48

GoogleCodeExporter commented 8 years ago
Which device are you building for ?

Original comment by Djoneslo...@gmail.com on 28 Oct 2012 at 10:33

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I'm having a similar error.
I'b building it on an Samsung epic4g
I fixed it by removing the -Werror flag from the Makefile
the Makefile in [kerneldir]/drivers/net/wireless/bcm4329

Original comment by GoldenSt...@gmail.com on 9 Dec 2012 at 9:01

GoogleCodeExporter commented 8 years ago
"I fixed it by removing the -Werror flag from the Makefile" - it's not fix, 
it's just workaround.
I have HTC Evo 3D (shooteru)

Original comment by coy...@starrk.pp.ru on 12 Dec 2012 at 11:12