aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-07-04 03:22:08 +0000
committerFred Fish <fnf@specifix.com>1992-07-04 03:22:08 +0000
commit4ed3a9ea66ca93b7dea29c5cdc23d80e77e442bb (patch)
treeab1ee3900e42f9b78e93b188f593963550e21566 /gdb/symfile.c
parent4c7c6bab1f8ca0ff46795c843e887171f86731d1 (diff)
downloadgdb-4ed3a9ea66ca93b7dea29c5cdc23d80e77e442bb.zip
gdb-4ed3a9ea66ca93b7dea29c5cdc23d80e77e442bb.tar.gz
gdb-4ed3a9ea66ca93b7dea29c5cdc23d80e77e442bb.tar.bz2
* breakpoint.c, buildsym.c, c-exp.y, coffread.c, command.c,
core.c, cplus-dem.c, dbxread.c, dwarfread.c, elfread.c, environ.c, eval.c, findvar.c, gdbtypes.c, hppabsd-tdep.c, hppahpux-tdep.c, i386-tdep.c, ieee-float.c, infcmd.c, inflow.c, infptrace.c, infrun.c, m2-exp.y, mipsread.c, objfiles.c, parse.c, procfs.c, putenv.c, remote-mm.c, remote-vx.c, solib.c, sparc-tdep.c, sparc-xdep.c, stack.c, symfile.c, symtab.c, symtab.h, target.c, tm-i386v.h, tm-sparc.h, utils.c, valarith.c, valops.c, valprint.c, values.c, xcoffread.c: Remove "(void)" casts from function calls where the return value is ignored, in accordance with GNU coding standards.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 3ba11de..740c4c1 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -70,7 +70,7 @@ symfile_bfd_open PARAMS ((char *));
static void
find_sym_fns PARAMS ((struct objfile *));
-static void
+void
clear_symtab_users_once PARAMS ((void));
/* List of all available sym_fns. On gdb startup, each object file reader
@@ -545,7 +545,7 @@ symbol_file_add (name, from_tty, addr, mainline, mapped, readnow)
psymtab != NULL;
psymtab = psymtab -> next)
{
- (void) psymtab_to_symtab (psymtab);
+ psymtab_to_symtab (psymtab);
}
}
@@ -625,8 +625,7 @@ symbol_file_command (args, from_tty)
/* Getting new symbols may change our opinion about what is
frameless. */
reinit_frame_cache ();
- (void) symbol_file_add (name, from_tty, (CORE_ADDR)0, 1,
- mapped, readnow);
+ symbol_file_add (name, from_tty, (CORE_ADDR)0, 1, mapped, readnow);
}
do_cleanups (cleanups);
}
@@ -804,7 +803,7 @@ add_symbol_file_command (args, from_tty)
reinit_frame_cache ();
- (void) symbol_file_add (name, 0, text_addr, 0, mapped, readnow);
+ symbol_file_add (name, 0, text_addr, 0, mapped, readnow);
}
/* Re-read symbols if a symbol-file has changed. */
@@ -992,7 +991,7 @@ allocate_symtab (filename, objfile)
symtab = (struct symtab *)
obstack_alloc (&objfile -> symbol_obstack, sizeof (struct symtab));
- (void) memset (symtab, 0, sizeof (*symtab));
+ memset (symtab, 0, sizeof (*symtab));
symtab -> filename = obsavestring (filename, strlen (filename),
&objfile -> symbol_obstack);
symtab -> fullname = NULL;
@@ -1028,7 +1027,7 @@ allocate_psymtab (filename, objfile)
obstack_alloc (&objfile -> psymbol_obstack,
sizeof (struct partial_symtab));
- (void) memset (psymtab, 0, sizeof (struct partial_symtab));
+ memset (psymtab, 0, sizeof (struct partial_symtab));
psymtab -> filename = obsavestring (filename, strlen (filename),
&objfile -> psymbol_obstack);
psymtab -> symtab = NULL;
@@ -1071,7 +1070,7 @@ allocate_psymtab (filename, objfile)
static int clear_symtab_users_queued;
static int clear_symtab_users_done;
-static void
+void
clear_symtab_users_once ()
{
/* Enforce once-per-`do_cleanups'-semantics */