From: Ondřej Surý Date: Thu, 27 Jan 2022 11:34:15 +0000 (+0100) Subject: Downgrade -Wstringop-overread from error to warning X-Git-Tag: v9.19.0~105^2~1 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=ddd5b0ff894fe48f668a63696fbabb3777bbc89b;p=thirdparty%2Fbind9.git Downgrade -Wstringop-overread from error to warning Due to a bug in gcc-11, the build fails when AddressSanitizer is enabled. Downgrading the -Wstringop-overread to just a warning in the gcc:asan build allows the code to compile. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3571d5622ea..ae6f1b9a5db 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -942,7 +942,7 @@ unit:gcc:focal:amd64: gcc:asan: variables: CC: gcc - CFLAGS: "${CFLAGS_COMMON} -fsanitize=address,undefined" + CFLAGS: "${CFLAGS_COMMON} -fsanitize=address,undefined -Wno-error=stringop-overread" LDFLAGS: "-fsanitize=address,undefined" SOFTHSM2_MODULE: "/lib64/libsofthsm2.so" EXTRA_CONFIGURE: "--with-libidn2 --without-jemalloc"