From f4ee58bde946ec87c8ead17d7b47c1c7bcb7c3f6 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sat, 24 Oct 2015 22:40:37 -0400 Subject: tui-data.c: Remove unnecessary casts The (void *) casts make the build fail in C++ mode and are unnecessary. gdb/ChangeLog: * tui/tui-data.c (tui_add_to_source_windows): Remove void * cast. (tui_add_content_elements): Likewise. --- gdb/ChangeLog | 6 ++++++ gdb/tui/tui-data.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'gdb') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3017fd0..56499c9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2015-10-24 Simon Marchi + * tui/tui-data.c (tui_add_to_source_windows): Remove void * + cast. + (tui_add_content_elements): Likewise. + +2015-10-24 Simon Marchi + * cli/cli-setshow.c (do_set_command): Constify p. 2015-10-24 Simon Marchi diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c index 2fcd547..4966c5b 100644 --- a/gdb/tui/tui-data.c +++ b/gdb/tui/tui-data.c @@ -192,7 +192,7 @@ void tui_add_to_source_windows (struct tui_win_info *win_info) { if (source_windows.count < 2) - source_windows.list[source_windows.count++] = (void *) win_info; + source_windows.list[source_windows.count++] = win_info; } @@ -636,7 +636,7 @@ tui_add_content_elements (struct tui_gen_win_info *win_info, element_ptr = XNEW (struct tui_win_element); if (element_ptr != NULL) { - win_info->content[i] = (void *) element_ptr; + win_info->content[i] = element_ptr; init_content_element (element_ptr, win_info->type); win_info->content_size++; } -- cgit v1.1