summaryrefslogtreecommitdiffstats
path: root/recipes-extended/xen/files/tools-xentop-vwprintw.patch
diff options
context:
space:
mode:
authorChristopher Clark <christopher.w.clark@gmail.com>2018-07-31 12:35:42 -0700
committerBruce Ashfield <bruce.ashfield@windriver.com>2018-08-02 22:57:14 -0400
commit9955e81b23eb6bb264b32c5bb02b326097a4ec02 (patch)
tree5aa96388dcf449b2b9f5b8bce380a0e35941d42a /recipes-extended/xen/files/tools-xentop-vwprintw.patch
parent02d2c7daeb5b3edd83b850eb5397d0b297a11c8a (diff)
downloadmeta-virtualization-9955e81b23eb6bb264b32c5bb02b326097a4ec02.tar.gz
xen: upgrade to 4.10.1, and apply patches for gcc 8.1 compatibility
Adds packaging for new binary: xen-shim. Builds the hypervisor before building the tools to workaround an upstream parallel build bug that causes the shim to be rebuilt during install. Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-extended/xen/files/tools-xentop-vwprintw.patch')
-rw-r--r--recipes-extended/xen/files/tools-xentop-vwprintw.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/recipes-extended/xen/files/tools-xentop-vwprintw.patch b/recipes-extended/xen/files/tools-xentop-vwprintw.patch
new file mode 100644
index 00000000..5d5d0116
--- /dev/null
+++ b/recipes-extended/xen/files/tools-xentop-vwprintw.patch
@@ -0,0 +1,25 @@
1tools/xentop : fix vwprintw -Werror=deprecated-declarations warning
2
3gcc-8.1 complains:
4
5| xentop.c: In function 'print':
6| xentop.c:304:4: error: 'vwprintw' is deprecated [-Werror=deprecated-declarations]
7| vwprintw(stdscr, (curses_str_t)fmt, args);
8| ^~~~~~~~
9
10vw_printw is the non-deprecated alternative.
11
12Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
13diff --git a/tools/xenstat/xentop/xentop.c b/tools/xenstat/xentop/xentop.c
14index 2fd2b67..c465810 100644
15--- a/tools/xenstat/xentop/xentop.c
16+++ b/tools/xenstat/xentop/xentop.c
17@@ -301,7 +301,7 @@ static void print(const char *fmt, ...)
18 if (!batch) {
19 if((current_row() < lines()-1)) {
20 va_start(args, fmt);
21- vwprintw(stdscr, (curses_str_t)fmt, args);
22+ vw_printw(stdscr, (curses_str_t)fmt, args);
23 va_end(args);
24 }
25 } else {