pkgdep/git: disable werrors while QEMU compilation

Disable werrors during QEMU compilation because
it doesn't matter for SPDK in general.

Signed-off-by: Kamil Godzwon <kamilx.godzwon@intel.com>
Change-Id: I55f68a585c3540192732883f42fae98f269e0022
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/13645
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Pawel Piatek <pawelx.piatek@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Michal Berger <michal.berger@intel.com>
This commit is contained in:
Kamil Godzwon 2022-07-12 07:26:49 -04:00 committed by Konrad Sztyber
parent 0adabc9eb1
commit ea98ada0e5

View File

@ -245,16 +245,10 @@ function _install_qemu() {
opt_params+=("--disable-docs") opt_params+=("--disable-docs")
if ((gcc_version >= 9)); then if ((gcc_version >= 9)); then
# GCC 9 fails to compile Qemu due to some old warnings which were not detected by older versions.
extra_cflags+=("-Wno-error=stringop-truncation" "-Wno-error=deprecated-declarations")
extra_cflags+=("-Wno-error=incompatible-pointer-types" "-Wno-error=format-truncation")
extra_cflags+=("-Wno-error=address-of-packed-member")
opt_params+=("--disable-glusterfs") opt_params+=("--disable-glusterfs")
fi fi
if ((gcc_version >= 11)); then extra_cflags+=("-Wno-error")
extra_cflags+=("-Wno-error=array-bounds")
fi
# Most tsocks proxies rely on a configuration file in /etc/tsocks.conf. # 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 using tsocks, please make sure to complete this config before trying to build qemu.