From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9332 invoked by alias); 8 Feb 2007 16:32:36 -0000 Received: (qmail 9324 invoked by uid 22791); 8 Feb 2007 16:32:35 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 08 Feb 2007 16:32:28 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1HFCC9-0003Up-HZ; Thu, 08 Feb 2007 11:32:25 -0500 Date: Thu, 08 Feb 2007 16:32:00 -0000 From: Daniel Jacobowitz To: timeless Cc: gdb-patches@sourceware.org Subject: Re: void function cannot return value Message-ID: <20070208163225.GC11806@nevyn.them.org> Mail-Followup-To: timeless , gdb-patches@sourceware.org References: <1a75cc570701311332w440ae8efgfc2e427f72e85115@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1a75cc570701311332w440ae8efgfc2e427f72e85115@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-02/txt/msg00084.txt.bz2 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