aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorEgeyar Bagcioglu <egeyar.bagcioglu@oracle.com>2017-10-11 11:00:48 +0100
committerPedro Alves <palves@redhat.com>2017-10-11 11:00:48 +0100
commit7fa29be949a96f68ee65dcdb4f56f132609170db (patch)
tree70e4e6f44212b2d460dd18a1cb29b97e81daee94 /gdb/tui
parentd9b477e3b7388732ed5293d929ceb5fc609916fe (diff)
downloadgdb-7fa29be949a96f68ee65dcdb4f56f132609170db.zip
gdb-7fa29be949a96f68ee65dcdb4f56f132609170db.tar.gz
gdb-7fa29be949a96f68ee65dcdb4f56f132609170db.tar.bz2
Remove unnecessary parentheses in declarations
GCC commit a94975e57 ("C++ warning on vexing parse") introduces new warnings "unnecessary parentheses in the declaration of ...". These cause the build of binutils and gdb to fail. This patch removes those parentheses for a successful build. gdb/ChangeLog: 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com> * macrotab.h (macro_lookup_inclusion): Remove unnecessary parentheses in the declaration. (macro_lookup_inclusion): Likewise. (macro_lookup_definition): Likewise. * p-lang.h (pascal_builtin_types): Likewise. * tui/tui-data.c (tui_win_list): Likewise. * tui/tui-data.h (tui_win_list): Likewise. * utils.h (make_cleanup_free_section_addr_info): Likewise.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-data.c2
-rw-r--r--gdb/tui/tui-data.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c
index 749a62e..66e2043 100644
--- a/gdb/tui/tui-data.c
+++ b/gdb/tui/tui-data.c
@@ -29,7 +29,7 @@
/****************************
** GLOBAL DECLARATIONS
****************************/
-struct tui_win_info *(tui_win_list[MAX_MAJOR_WINDOWS]);
+struct tui_win_info *tui_win_list[MAX_MAJOR_WINDOWS];
/***************************
** Private data
diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h
index 2a4f55b..7beb272 100644
--- a/gdb/tui/tui-data.h
+++ b/gdb/tui/tui-data.h
@@ -293,7 +293,7 @@ extern void tui_set_win_highlight (struct tui_win_info *win_info,
/* Global Data. */
-extern struct tui_win_info *(tui_win_list[MAX_MAJOR_WINDOWS]);
+extern struct tui_win_info *tui_win_list[MAX_MAJOR_WINDOWS];
#define TUI_SRC_WIN tui_win_list[SRC_WIN]
#define TUI_DISASM_WIN tui_win_list[DISASSEM_WIN]