This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: void function cannot return value
- From: Daniel Jacobowitz <drow at false dot org>
- To: timeless <timeless at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 8 Feb 2007 11:32:25 -0500
- Subject: Re: void function cannot return value
- References: <1a75cc570701311332w440ae8efgfc2e427f72e85115@mail.gmail.com>
On Wed, Jan 31, 2007 at 11:32:47PM +0200, timeless wrote:
> the build fails because of:
> "wrapper.c", line 773: void function cannot return value
> ".././gdb/cli/cli-cmds.c", line 517: void function cannot return value
> "target.c", line 1248: void function cannot return value
> "target.c", line 1264: void function cannot return value
>
> the fix (cvs diff attached) is to replace
> return (void) foo();
> with
> foo(); return;
Thanks for the patch! I committed it.
--
Daniel Jacobowitz
CodeSourcery