mirror of
https://github.com/netdata/libbpf.git
synced 2026-03-21 00:39:07 +08:00
ci: disable GCC's -Wstringop-truncation noisy error
This error is usually a false positive for us. Disable it. Signed-off-by: Andrii Nakryiko <andriin@fb.com>
This commit is contained in:
committed by
Andrii Nakryiko
parent
33b374395f
commit
4d86cae4f0
@@ -48,6 +48,8 @@ for phase in "${PHASES[@]}"; do
|
|||||||
elif [[ "$phase" = *"GCC8"* ]]; then
|
elif [[ "$phase" = *"GCC8"* ]]; then
|
||||||
ENV_VARS="-e CC=gcc-8 -e CXX=g++-8"
|
ENV_VARS="-e CC=gcc-8 -e CXX=g++-8"
|
||||||
CC="gcc-8"
|
CC="gcc-8"
|
||||||
|
else
|
||||||
|
CFLAGS="${CFLAGS} -Wno-stringop-truncation"
|
||||||
fi
|
fi
|
||||||
if [[ "$phase" = *"ASAN"* ]]; then
|
if [[ "$phase" = *"ASAN"* ]]; then
|
||||||
CFLAGS="${CFLAGS} -fsanitize=address,undefined"
|
CFLAGS="${CFLAGS} -fsanitize=address,undefined"
|
||||||
|
|||||||
Reference in New Issue
Block a user