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 <michalx.berger@intel.com> Change-Id: I472e5e88a30feaacc7ea96d5787544f49eaceb16 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8530 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: John Kariuki <John.K.Kariuki@intel.com> Reviewed-by: Pawel Piatek <pawelx.piatek@intel.com> Reviewed-by: Maciej Wawryk <maciejx.wawryk@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
9a0bd78b43
commit
aa303d87aa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user