diff options
author | Diego Sueiro <diego.sueiro@arm.com> | 2021-05-06 16:37:47 +0100 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2021-05-06 16:40:28 -0400 |
commit | e99974aa57ec9aa4f51817346ddc744bd9f61eca (patch) | |
tree | a5dedd161ba43a968c33448aaad06ca510b0de9b | |
parent | dda5ae36b44c61e61439341ea3153e6be5cb015e (diff) | |
download | meta-virtualization-e99974aa57ec9aa4f51817346ddc744bd9f61eca.tar.gz |
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>
-rw-r--r-- | recipes-extended/xen/xen-tools.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/recipes-extended/xen/xen-tools.inc b/recipes-extended/xen/xen-tools.inc index 3560e798..e939c459 100644 --- a/recipes-extended/xen/xen-tools.inc +++ b/recipes-extended/xen/xen-tools.inc | |||
@@ -725,9 +725,12 @@ do_configure() { | |||
725 | do_configure_common | 725 | do_configure_common |
726 | } | 726 | } |
727 | 727 | ||
728 | # Workaround when compiling with gcc-11 | ||
729 | EXTRA_CFLAGS_XEN_TOOLS_append = " -Wno-vla-parameter" | ||
730 | |||
728 | do_compile() { | 731 | do_compile() { |
729 | cd ${S} | 732 | cd ${S} |
730 | oe_runmake tools PYTHON="${PYTHON}" | 733 | oe_runmake tools EXTRA_CFLAGS_XEN_TOOLS="${EXTRA_CFLAGS_XEN_TOOLS}" PYTHON="${PYTHON}" |
731 | } | 734 | } |
732 | 735 | ||
733 | do_install() { | 736 | do_install() { |