diff options
Diffstat (limited to 'recipes-extended/xen/files/tools-xentop-vwprintw.patch')
-rw-r--r-- | recipes-extended/xen/files/tools-xentop-vwprintw.patch | 25 |
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 @@ | |||
1 | tools/xentop : fix vwprintw -Werror=deprecated-declarations warning | ||
2 | |||
3 | gcc-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 | |||
10 | vw_printw is the non-deprecated alternative. | ||
11 | |||
12 | Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com> | ||
13 | diff --git a/tools/xenstat/xentop/xentop.c b/tools/xenstat/xentop/xentop.c | ||
14 | index 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 { | ||