ip: fix compiling error with gcc-10 52/28252/4
authorJieqiang Wang <jieqiang.wang@arm.com>
Fri, 7 Aug 2020 14:18:04 +0000 (14:18 +0000)
committerDamjan Marion <dmarion@me.com>
Mon, 31 Aug 2020 18:15:51 +0000 (18:15 +0000)
commitc8833b21919090cfde400c5fe7a14ccc38949764
tree961d87e1c8e1904df4656e10f67a59a6d02f0498
parent4a76d6f6da035220917097bc047b08bc58254803
ip: fix compiling error with gcc-10

Building VPP using gcc-10 fails because of the array bounds check
error for function ip4_header_checksum(), with option field in IPv4
header exceeding the ip4_header_t bound. Fix this error by turning
off the array bounds check option for function ip4_header_checksum().

Change-Id: I68cc241ae9e403d35ac2e320549506dc6565a0b6
Type: fix
Signed-off-by: Jieqiang Wang <jieqiang.wang@arm.com>
src/vnet/ip/ip4_packet.h