diff options
author | Pierre Muller <muller@sourceware.org> | 2010-04-13 12:11:10 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2010-04-13 12:11:10 +0000 |
commit | ae3bccd49af51ab056588ec70dff8364b6266de5 (patch) | |
tree | d58a48db441272b0194b2f0e7fd2002294f893d0 /gdb/tui | |
parent | 727ac201d4273426750f36d9523a3d48399eba3c (diff) | |
download | gdb-ae3bccd49af51ab056588ec70dff8364b6266de5.zip gdb-ae3bccd49af51ab056588ec70dff8364b6266de5.tar.gz gdb-ae3bccd49af51ab056588ec70dff8364b6266de5.tar.bz2 |
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.
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/tui-regs.c | 4 | ||||
-rw-r--r-- | gdb/tui/tui-stack.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c index 248f71a..8cbd338 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 a2841ce..1630bea 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); |