From 8944021f76f1f5612bbfc7ebf8502b3f9b5fb203 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Thu, 8 Feb 2007 16:31:57 +0000 Subject: Reported by timeless@gmail.com: * gdb/target.c (target_flash_erase): Do not return void value. (target_flash_done): Likewise. * gdb/cli/cli-cmds.c (source_command): Likewise. Reported by timeless@gmail.com: * wrapper.c (sim_target_parse_arg_array): Do not return void value. --- gdb/target.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gdb/target.c') diff --git a/gdb/target.c b/gdb/target.c index caa2279..f9d6064 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -1252,7 +1252,8 @@ target_flash_erase (ULONGEST address, LONGEST length) if (targetdebug) fprintf_unfiltered (gdb_stdlog, "target_flash_erase (%s, %s)\n", paddr (address), phex (length, 0)); - return t->to_flash_erase (t, address, length); + t->to_flash_erase (t, address, length); + return; } tcomplain (); @@ -1268,7 +1269,8 @@ target_flash_done (void) { if (targetdebug) fprintf_unfiltered (gdb_stdlog, "target_flash_done\n"); - return t->to_flash_done (t); + t->to_flash_done (t); + return; } tcomplain (); -- cgit v1.1