summaryrefslogtreecommitdiff
path: root/gdb/macrotab.h
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/macrotab.h
parentd9b477e3b7388732ed5293d929ceb5fc609916fe (diff)
downloadbinutils-gdb-7fa29be949a96f68ee65dcdb4f56f132609170db.tar.gz
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/macrotab.h')
-rw-r--r--gdb/macrotab.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/gdb/macrotab.h b/gdb/macrotab.h
index 16e959a1dd8..4eff80f22ce 100644
--- a/gdb/macrotab.h
+++ b/gdb/macrotab.h
@@ -230,9 +230,9 @@ void macro_define_special (struct macro_table *table);
path. e.g., `stdio.h', not `/usr/include/stdio.h'. If NAME
appears more than once in the inclusion tree, return the
least-nested inclusion --- the one closest to the main source file. */
-struct macro_source_file *(macro_lookup_inclusion
- (struct macro_source_file *source,
- const char *name));
+struct macro_source_file *macro_lookup_inclusion
+ (struct macro_source_file *source,
+ const char *name);
/* Record an object-like #definition (i.e., one with no parameter list).
@@ -315,9 +315,9 @@ struct macro_definition
effect at the end of the file. The macro table owns the structure;
the caller need not free it. Return zero if NAME is not #defined
at that point. */
-struct macro_definition *(macro_lookup_definition
- (struct macro_source_file *source,
- int line, const char *name));
+struct macro_definition *macro_lookup_definition
+ (struct macro_source_file *source,
+ int line, const char *name);
/* Return the source location of the definition for NAME in scope at
@@ -325,11 +325,11 @@ struct macro_definition *(macro_lookup_definition
number of the definition, and return a source file structure for
the file. Return zero if NAME has no definition in scope at that
point, and leave *DEFINITION_LINE unchanged. */
-struct macro_source_file *(macro_definition_location
- (struct macro_source_file *source,
- int line,
- const char *name,
- int *definition_line));
+struct macro_source_file *macro_definition_location
+ (struct macro_source_file *source,
+ int line,
+ const char *name,
+ int *definition_line);
/* Prototype for a callback callable when walking a macro table. NAME
is the name of the macro, and DEFINITION is the definition. SOURCE