summaryrefslogtreecommitdiff
path: root/gdb/tui/tui-regs.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2010-04-16 04:34:31 +0000
committerJoel Brobecker <brobecker@gnat.com>2010-04-16 04:34:31 +0000
commitcae3f17beefe8fb818861f8527720236969a0cfa (patch)
treeb91b8caf53e1fc8b1ff11b295135fb5adabf7348 /gdb/tui/tui-regs.c
parent2ce6d6bf7c5f2c7ef3e816b1c64b4e14e52ca6bd (diff)
downloadbinutils-gdb-cae3f17beefe8fb818861f8527720236969a0cfa.tar.gz
* tui/tui-regs.c (tui_display_register): Add comment about
a couple of casts. * tui/tui-stack.c (tui_show_locator_content): Ditto.
Diffstat (limited to 'gdb/tui/tui-regs.c')
-rw-r--r--gdb/tui/tui-regs.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c
index 8cbd338aae9..a339beadc60 100644
--- a/gdb/tui/tui-regs.c
+++ b/gdb/tui/tui-regs.c
@@ -541,6 +541,11 @@ tui_display_register (struct tui_data_element *data,
int i;
if (data->highlight)
+ /* We ignore the return value, casting it to void in order to avoid
+ a compiler warning. The warning itself was introduced by a patch
+ to ncurses 5.7 dated 2009-08-29, changing this macro to expand
+ to code that causes the compiler to generate an unused-value
+ warning. */
(void) wstandout (win_info->handle);
wmove (win_info->handle, 0, 0);
@@ -551,6 +556,11 @@ tui_display_register (struct tui_data_element *data,
waddstr (win_info->handle, data->content);
if (data->highlight)
+ /* We ignore the return value, casting it to void in order to avoid
+ a compiler warning. The warning itself was introduced by a patch
+ to ncurses 5.7 dated 2009-08-29, changing this macro to expand
+ to code that causes the compiler to generate an unused-value
+ warning. */
(void) wstandend (win_info->handle);
tui_refresh_win (win_info);
}