* 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.
This commit is contained in:
parent
4c7c6bab1f
commit
4ed3a9ea66
35 changed files with 208 additions and 205 deletions
|
@ -52,7 +52,7 @@ alloc_type (objfile)
|
|||
type = (struct type *) obstack_alloc (&objfile -> type_obstack,
|
||||
sizeof (struct type));
|
||||
}
|
||||
(void) memset ((char *)type, 0, sizeof (struct type));
|
||||
memset ((char *)type, 0, sizeof (struct type));
|
||||
|
||||
/* Initialize the fields that might not be zero. */
|
||||
|
||||
|
@ -362,7 +362,7 @@ smash_to_member_type (type, domain, to_type)
|
|||
|
||||
objfile = TYPE_OBJFILE (type);
|
||||
|
||||
(void) memset ((char *)type, 0, sizeof (struct type));
|
||||
memset ((char *)type, 0, sizeof (struct type));
|
||||
TYPE_OBJFILE (type) = objfile;
|
||||
TYPE_TARGET_TYPE (type) = to_type;
|
||||
TYPE_DOMAIN_TYPE (type) = domain;
|
||||
|
@ -388,7 +388,7 @@ smash_to_method_type (type, domain, to_type, args)
|
|||
|
||||
objfile = TYPE_OBJFILE (type);
|
||||
|
||||
(void) memset ((char *)type, 0, sizeof (struct type));
|
||||
memset ((char *)type, 0, sizeof (struct type));
|
||||
TYPE_OBJFILE (type) = objfile;
|
||||
TYPE_TARGET_TYPE (type) = to_type;
|
||||
TYPE_DOMAIN_TYPE (type) = domain;
|
||||
|
@ -930,7 +930,7 @@ lookup_fundamental_type (objfile, typeid)
|
|||
nbytes = FT_NUM_MEMBERS * sizeof (struct type *);
|
||||
objfile -> fundamental_types = (struct type **)
|
||||
obstack_alloc (&objfile -> type_obstack, nbytes);
|
||||
(void) memset ((char *)objfile -> fundamental_types, 0, nbytes);
|
||||
memset ((char *)objfile -> fundamental_types, 0, nbytes);
|
||||
}
|
||||
typep = objfile -> fundamental_types + typeid;
|
||||
if ((type = *typep) == NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue