From 0c248143d452d32c7b23de625d888fa0bb5e2273 Mon Sep 17 00:00:00 2001 From: Ilya Leoshkevich Date: Wed, 31 Mar 2021 00:45:32 +0200 Subject: [PATCH] travis-ci: disable GCC's -Wstringop-truncation noisy error on Ubuntu This is the same as commit 4d86cae4f09f ("ci: disable GCC's -Wstringop-truncation noisy error"), but for Ubuntu. Without this, there are false positives in bpf_object__new() on Ubuntu 20.04: this function calls strncpy() with the correct bounds, but still triggers the warning. Signed-off-by: Ilya Leoshkevich --- travis-ci/managers/ubuntu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/travis-ci/managers/ubuntu.sh b/travis-ci/managers/ubuntu.sh index 90f9a6d..2229dc6 100755 --- a/travis-ci/managers/ubuntu.sh +++ b/travis-ci/managers/ubuntu.sh @@ -14,7 +14,7 @@ source "$(dirname $0)/travis_wait.bash" cd $REPO_ROOT -CFLAGS="-g -O2 -Werror -Wall -fsanitize=address,undefined" +CFLAGS="-g -O2 -Werror -Wall -fsanitize=address,undefined -Wno-stringop-truncation" mkdir build install cc --version make -j$((4*$(nproc))) CFLAGS="${CFLAGS}" -C ./src -B OBJDIR=../build