From: Pierre Muller Date: Tue, 13 Apr 2010 12:11:10 +0000 (+0000) Subject: Suppress unused value warning during compilation. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ae3bccd49af51ab056588ec70dff8364b6266de5;p=binutils-gdb.git Suppress unused value warning during compilation. * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend calls to void. * tui/tui-stack.c (tui_show_locator_content): Likewise. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 51cdaa6b4a2..836657737ff 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2010-04-13 Pierre Muller + + Suppress unused value warning during compilation. + * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend + calls to void. + * tui/tui-stack.c (tui_show_locator_content): Likewise. + 2010-04-12 Stan Shebs * tracepoint.c (tfile_xfer_partial): Check read result. diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c index 248f71a8233..8cbd338aae9 100644 --- a/gdb/tui/tui-regs.c +++ b/gdb/tui/tui-regs.c @@ -541,7 +541,7 @@ tui_display_register (struct tui_data_element *data, int i; if (data->highlight) - wstandout (win_info->handle); + (void) wstandout (win_info->handle); wmove (win_info->handle, 0, 0); for (i = 1; i < win_info->width; i++) @@ -551,7 +551,7 @@ tui_display_register (struct tui_data_element *data, waddstr (win_info->handle, data->content); if (data->highlight) - wstandend (win_info->handle); + (void) wstandend (win_info->handle); tui_refresh_win (win_info); } } diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c index a2841ce0a4e..1630beaa59f 100644 --- a/gdb/tui/tui-stack.c +++ b/gdb/tui/tui-stack.c @@ -256,10 +256,10 @@ tui_show_locator_content (void) string = tui_make_status_line (&element->which_element.locator); wmove (locator->handle, 0, 0); - wstandout (locator->handle); + (void) wstandout (locator->handle); waddstr (locator->handle, string); wclrtoeol (locator->handle); - wstandend (locator->handle); + (void) wstandend (locator->handle); tui_refresh_win (locator); wmove (locator->handle, 0, 0); xfree (string);