mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00
xen-tools: Pass -Wno-vla-parameter to workaround when compiling with gcc-11
When compiling xen-tools (4.14 and 4.15) with gcc-11 the following kind of errors are produced: linux.c:164:50: error: argument 7 of type 'const xen_pfn_t[]' {aka 'const long unsigned int[]'} declared as an ordinary array [-Werror=vla-parameter] 164 | const xen_pfn_t arr[/*num*/], int err[/*num*/]) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~ Workaround it by passing -Wno-vla-parameter to the compiler. Signed-off-by: Diego Sueiro <diego.sueiro@arm.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
dda5ae36b4
commit
e99974aa57
|
@ -725,9 +725,12 @@ do_configure() {
|
||||||
do_configure_common
|
do_configure_common
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Workaround when compiling with gcc-11
|
||||||
|
EXTRA_CFLAGS_XEN_TOOLS_append = " -Wno-vla-parameter"
|
||||||
|
|
||||||
do_compile() {
|
do_compile() {
|
||||||
cd ${S}
|
cd ${S}
|
||||||
oe_runmake tools PYTHON="${PYTHON}"
|
oe_runmake tools EXTRA_CFLAGS_XEN_TOOLS="${EXTRA_CFLAGS_XEN_TOOLS}" PYTHON="${PYTHON}"
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user