[XEN PATCH v3 23/25] tools/helpers: Fix build of xen-init-dom0 with -Werror

Anthony PERARD posted 25 patches 3 years, 7 months ago
There is a newer version of this series
[XEN PATCH v3 23/25] tools/helpers: Fix build of xen-init-dom0 with -Werror
Posted by Anthony PERARD 3 years, 7 months ago
Missing prototype of asprintf() without _GNU_SOURCE.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
---
 tools/helpers/xen-init-dom0.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/helpers/xen-init-dom0.c b/tools/helpers/xen-init-dom0.c
index 37eff8868f..764f837887 100644
--- a/tools/helpers/xen-init-dom0.c
+++ b/tools/helpers/xen-init-dom0.c
@@ -1,3 +1,5 @@
+#define _GNU_SOURCE
+
 #include <stdlib.h>
 #include <stdint.h>
 #include <string.h>
-- 
Anthony PERARD
RE: [XEN PATCH v3 23/25] tools/helpers: Fix build of xen-init-dom0 with -Werror
Posted by Henry Wang 3 years, 7 months ago
Hi Anthony,

> -----Original Message-----
> Subject: [XEN PATCH v3 23/25] tools/helpers: Fix build of xen-init-dom0 with
> -Werror
> 
> Missing prototype of asprintf() without _GNU_SOURCE.
> 
> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>

Reviewed-by: Henry Wang <Henry.Wang@arm.com>

Kind regards,
Henry

> ---
>  tools/helpers/xen-init-dom0.c | 2 ++
>  1 file changed, 2 insertions(+)