diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2015-10-24 22:40:37 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2015-10-24 22:40:37 -0400 |
commit | f4ee58bde946ec87c8ead17d7b47c1c7bcb7c3f6 (patch) | |
tree | 306da41497d166e815bb4676a9c0d9fa1ca35919 /gdb/tui/tui-data.c | |
parent | 1650ca11248ca377a6c8b6f7e21ec2aa8e7b3fd5 (diff) | |
download | binutils-f4ee58bde946ec87c8ead17d7b47c1c7bcb7c3f6.zip binutils-f4ee58bde946ec87c8ead17d7b47c1c7bcb7c3f6.tar.gz binutils-f4ee58bde946ec87c8ead17d7b47c1c7bcb7c3f6.tar.bz2 |
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.
Diffstat (limited to 'gdb/tui/tui-data.c')
-rw-r--r-- | gdb/tui/tui-data.c | 4 |
1 files changed, 2 insertions, 2 deletions
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++; } |