From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28380 invoked by alias); 31 Jan 2003 00:21:07 -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 28372 invoked from network); 31 Jan 2003 00:21:06 -0000 Received: from unknown (HELO packet.digeo.com) (12.110.80.53) by 172.16.49.205 with SMTP; 31 Jan 2003 00:21:06 -0000 Received: from digeo-nav01.digeo.com (digeo-nav01.digeo.com [192.168.1.233]) by packet.digeo.com (8.9.3+Sun/8.9.3) with SMTP id QAA22408 for ; Thu, 30 Jan 2003 16:21:05 -0800 (PST) Received: from digeo-e2k04.digeo.com ([192.168.2.24]) by digeo-nav01.digeo.com (NAVGW 2.5.2.12) with SMTP id M2003013016242714001 ; Thu, 30 Jan 2003 16:24:27 -0800 Received: from pao-ex01.pao.digeo.com ([172.17.144.34]) by digeo-e2k04.digeo.com with Microsoft SMTPSVC(5.0.2195.5329); Thu, 30 Jan 2003 16:21:05 -0800 Received: from digeo.com ([172.17.140.150]) by pao-ex01.pao.digeo.com with Microsoft SMTPSVC(5.0.2195.4905); Thu, 30 Jan 2003 16:21:04 -0800 Message-ID: <3E39C170.C7825DC7@digeo.com> Date: Fri, 31 Jan 2003 00:56:00 -0000 From: Andrew Morton X-Accept-Language: en MIME-Version: 1.0 To: Jan Hubicka CC: gcc@gcc.gnu.org Subject: Re: possible bug References: <3E39BF1D.A0D038EF@digeo.com> <20030131001301.GJ15049@kam.mff.cuni.cz> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 31 Jan 2003 00:21:04.0386 (UTC) FILETIME=[A431BE20:01C2C8BE] X-SW-Source: 2003-01/txt/msg01701.txt.bz2 Jan Hubicka wrote: > > > 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. > Ah. You are of course correct.