aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.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/valops.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/valops.c')
-rw-r--r--gdb/valops.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index 8135cde..a852cfb 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -130,7 +130,7 @@ value_zero (type, lv)
{
register value val = allocate_value (type);
- (void) memset (VALUE_CONTENTS (val), 0, TYPE_LENGTH (type));
+ memset (VALUE_CONTENTS (val), 0, TYPE_LENGTH (type));
VALUE_LVAL (val) = lv;
return val;
@@ -333,10 +333,10 @@ value_assign (toval, fromval)
(int) value_as_long (fromval),
VALUE_BITPOS (toval), VALUE_BITSIZE (toval));
else if (use_buffer)
- (void) memcpy (buffer + byte_offset, raw_buffer, use_buffer);
+ memcpy (buffer + byte_offset, raw_buffer, use_buffer);
else
- (void) memcpy (buffer + byte_offset, VALUE_CONTENTS (fromval),
- TYPE_LENGTH (type));
+ memcpy (buffer + byte_offset, VALUE_CONTENTS (fromval),
+ TYPE_LENGTH (type));
/* Copy it back. */
for ((regno = VALUE_FRAME_REGNUM (toval) + reg_offset,
@@ -379,9 +379,9 @@ value_assign (toval, fromval)
}
val = allocate_value (type);
- (void) memcpy (val, toval, VALUE_CONTENTS_RAW (val) - (char *) val);
- (void) memcpy (VALUE_CONTENTS_RAW (val), VALUE_CONTENTS (fromval),
- TYPE_LENGTH (type));
+ memcpy (val, toval, VALUE_CONTENTS_RAW (val) - (char *) val);
+ memcpy (VALUE_CONTENTS_RAW (val), VALUE_CONTENTS (fromval),
+ TYPE_LENGTH (type));
VALUE_TYPE (val) = type;
return val;
@@ -742,7 +742,7 @@ call_function_by_hand (function, nargs, args)
/* Create a call sequence customized for this function
and the number of arguments for it. */
- (void) memcpy (dummy1, dummy, sizeof dummy);
+ memcpy (dummy1, dummy, sizeof dummy);
for (i = 0; i < sizeof dummy / sizeof (REGISTER_TYPE); i++)
SWAP_TARGET_AND_HOST (&dummy1[i], sizeof (REGISTER_TYPE));
FIX_CALL_DUMMY (dummy1, start_sp, funaddr, nargs, args,