summaryrefslogtreecommitdiff
path: root/.travis
diff options
context:
space:
mode:
authorIlya Maximets <i.maximets@ovn.org>2020-10-07 15:23:49 +0200
committerIlya Maximets <i.maximets@ovn.org>2020-10-08 18:09:43 +0200
commit3c6b3a519ae6eae3da4cf7c59894b02b95cdade7 (patch)
tree19823281b91c779c121f111a3b5fcb568ec363cb /.travis
parent61e157ca69ae226a3b73d32356afa0f2b74c4e4c (diff)
downloadopenvswitch-3c6b3a519ae6eae3da4cf7c59894b02b95cdade7.tar.gz
travis: Disable check for array of flexible structures in sparse.
Sparse introduced new checks for flexible arrays and there is a false-positive in netdev-linux implementation right now that can not be easily fixed. Patch sent to sparse to fix it, but we need to disable the check for now to unblock our CI. lib/netdev-linux.c:1238:19: error: array of flexible structures The issue is with the following code: union { struct cmsghdr cmsg; char buffer[CMSG_SPACE(sizeof(struct tpacket_auxdata))]; } cmsg_buffers[NETDEV_MAX_BURST]; 'struct cmsghdr' contains a flexible array. But this union is a way to ensure correct alignment of 'buffer', suggested by CMSG manpage. Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to '.travis')
-rwxr-xr-x.travis/linux-build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/.travis/linux-build.sh b/.travis/linux-build.sh
index 6981d1d47..6b6935794 100755
--- a/.travis/linux-build.sh
+++ b/.travis/linux-build.sh
@@ -4,7 +4,7 @@ set -o errexit
set -x
CFLAGS_FOR_OVS="-g -O2"
-SPARSE_FLAGS=""
+SPARSE_FLAGS="-Wno-flexible-array-array"
EXTRA_OPTS="--enable-Werror"
function install_kernel()