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:
Andrii Nakryiko
2019-10-15 16:46:50 -07:00
committed by Andrii Nakryiko
parent 33b374395f
commit 4d86cae4f0

View File

@@ -48,6 +48,8 @@ for phase in "${PHASES[@]}"; do
elif [[ "$phase" = *"GCC8"* ]]; then
ENV_VARS="-e CC=gcc-8 -e CXX=g++-8"
CC="gcc-8"
else
CFLAGS="${CFLAGS} -Wno-stringop-truncation"
fi
if [[ "$phase" = *"ASAN"* ]]; then
CFLAGS="${CFLAGS} -fsanitize=address,undefined"