From aa303d87aa5ebba6929e2b9b1245685e8f77e7e1 Mon Sep 17 00:00:00 2001 From: Michal Berger Date: Mon, 28 Jun 2021 12:01:21 +0200 Subject: [PATCH] pkgdep/git: Disable array-bounds error while building qemu gcc 11 started to complain about this condition. Ignore it. Spotted under fedora34. Signed-off-by: Michal Berger Change-Id: I472e5e88a30feaacc7ea96d5787544f49eaceb16 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8530 Tested-by: SPDK CI Jenkins Reviewed-by: John Kariuki Reviewed-by: Pawel Piatek Reviewed-by: Maciej Wawryk Reviewed-by: Tomasz Zawadzki Reviewed-by: Shuhei Matsumoto --- test/common/config/pkgdep/git | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/common/config/pkgdep/git b/test/common/config/pkgdep/git index 3dc2cab07..b0ea47f5e 100644 --- a/test/common/config/pkgdep/git +++ b/test/common/config/pkgdep/git @@ -253,6 +253,10 @@ function _install_qemu() { opt_params+=("--disable-glusterfs") fi + if ((gcc_version >= 11)); then + extra_cflags+=("-Wno-error=array-bounds") + fi + # Most tsocks proxies rely on a configuration file in /etc/tsocks.conf. # If using tsocks, please make sure to complete this config before trying to build qemu. if [[ $INSTALL_TSOCKS == true && $NO_TSOCKS != true ]]; then