From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18927 invoked by alias); 31 Jan 2003 00:13:00 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 18918 invoked from network); 31 Jan 2003 00:13:00 -0000 Received: from unknown (HELO nikam.ms.mff.cuni.cz) (195.113.18.106) by 172.16.49.205 with SMTP; 31 Jan 2003 00:13:00 -0000 Received: from camelot.ms.mff.cuni.cz (kampanus.ms.mff.cuni.cz [195.113.18.107]) by nikam.ms.mff.cuni.cz (Postfix) with SMTP id CD75D4DED8; Fri, 31 Jan 2003 01:13:01 +0100 (CET) Received: by camelot.ms.mff.cuni.cz (sSMTP sendmail emulation); Fri, 31 Jan 2003 01:13:01 +0100 Date: Fri, 31 Jan 2003 00:36:00 -0000 From: Jan Hubicka To: Andrew Morton Cc: gcc@gcc.gnu.org Subject: Re: possible bug Message-ID: <20030131001301.GJ15049@kam.mff.cuni.cz> References: <3E39BF1D.A0D038EF@digeo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E39BF1D.A0D038EF@digeo.com> User-Agent: Mutt/1.3.28i X-SW-Source: 2003-01/txt/msg01697.txt.bz2 > mnm:/home/akpm> cat t.c > void foo(void); > > char *bar(void) > { > return 0; > } > > char *zot(void) > { > return ({foo(); 0; }); > } > mnm:/home/akpm> /usr/local/gcc-3.2.1/bin/gcc -O -Wall -c t.c > t.c: In function `zot': > t.c:10: warning: return makes pointer from integer without a cast > > > I think the warning is bogus? I think the value of ({foo(); 0; }) is zero (value of last statement, if I recall the definition), so it is corect. Honza