mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
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.
This commit is contained in:
parent
727ac201d4
commit
ae3bccd49a
@ -1,3 +1,10 @@
|
||||
2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||
|
||||
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 <stan@codesourcery.com>
|
||||
|
||||
* tracepoint.c (tfile_xfer_partial): Check read result.
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user