]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Downgrade -Wstringop-overread from error to warning
authorOndřej Surý <ondrej@isc.org>
Thu, 27 Jan 2022 11:34:15 +0000 (12:34 +0100)
committerOndřej Surý <ondrej@isc.org>
Fri, 18 Feb 2022 08:16:03 +0000 (09:16 +0100)
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.

.gitlab-ci.yml

index 3571d5622eaca875c903938785f6b25af7ae9dff..ae6f1b9a5dba6d6c2fdf77c11cd0ab989e7a7d6a 100644 (file)
@@ -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"