Makefile: fix compile error when make allmodconfig
When make allmodconfig, it will error as below:
https://lore.kernel.org/netdev/bf61574349dcb586d70dde237b71206d68142c0c.camel@sipsolutions.net/T/
They say "at the moment gcc-13 (also 11 and 12) turns off the -Warray-bounds
checks because of excessive false positives, see 0da6e5fd6c
("gcc: disable
'-Warray-bounds' for gcc-13 too")."
So, upstream may won't fix the compile error when using gcc 8.5.
We add "CFLAGS_nl80211.o := -Wno-array-bounds" to disable '-Warray-bounds' when
compile nl80211.o
Signed-off-by: Jianping Liu <frankjpliu@tencent.com>
This commit is contained in:
parent
5131714359
commit
cd9f0130ac
|
@ -11,6 +11,7 @@ obj-$(CONFIG_WEXT_SPY) += wext-spy.o
|
|||
obj-$(CONFIG_WEXT_PRIV) += wext-priv.o
|
||||
|
||||
cfg80211-y += core.o sysfs.o radiotap.o util.o reg.o scan.o nl80211.o
|
||||
CFLAGS_nl80211.o := -Wno-array-bounds
|
||||
cfg80211-y += mlme.o ibss.o sme.o chan.o ethtool.o mesh.o ap.o trace.o ocb.o
|
||||
cfg80211-y += pmsr.o
|
||||
cfg80211-$(CONFIG_OF) += of.o
|
||||
|
|
Loading…
Reference in New Issue