Actions
Bug #14389
closednet80211: mismatched bound
Start date:
Due date:
% Done:
100%
Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
Description
Build errors with gcc 11:
../../common/io/net80211/net80211_crypto_tkip.c:654:13: error: argument 6 of type 'uint8_t[8]' {aka 'unsigned char[8]'} with mismatched bound [-Werror=array-parameter=] 654 | uint8_t mic[IEEE80211_WEP_MICLEN]) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ ../../common/io/net80211/net80211_crypto_tkip.c:90:31: note: previously declared as 'uint8_t[]' {aka 'unsigned char[]'} 90 | mblk_t *, uint_t, size_t, uint8_t[]); | ^~~~~~~~~ cc1: all warnings being treated as errors ../../common/io/net80211/net80211_crypto.c:314:20: error: argument 3 of type 'const uint8_t *' {aka 'const unsigned char *'} declared as a pointer [-Werror=array-parameter=] 314 | const uint8_t *macaddr) | ~~~~~~~~~~~~~~~^~~~~~~ In file included from ../../common/io/net80211/net80211_impl.h:45, from ../../common/io/net80211/net80211_crypto.c:48: ../../common/sys/net80211.h:716:23: note: previously declared as an array 'const uint8_t[6]' {aka 'const unsigned char[6]'} 716 | const uint8_t macaddr[IEEE80211_ADDR_LEN]); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors ../../common/io/net80211/net80211_node.c:1260:58: error: argument 2 of type 'const uint8_t *' {aka 'const unsigned char *'} declared as a pointer [-Werror=array-parameter=] 1260 | ieee80211_find_txnode(ieee80211com_t *ic, const uint8_t *daddr) | ~~~~~~~~~~~~~~~^~~~~ In file included from ../../common/io/net80211/net80211_impl.h:45, from ../../common/io/net80211/net80211_node.c:42: ../../common/sys/net80211.h:703:23: note: previously declared as an array 'const uint8_t[6]' {aka 'const unsigned char[6]'} 703 | const uint8_t daddr[IEEE80211_ADDR_LEN]); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors
Testing done: build/install/boot wsdiff is showing only debug info differences.
Actions