Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 26 Apr 2002 18:45:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 26 Apr 2002 18:45:46 -0400 Received: from eventhorizon.antefacto.net ([193.120.245.3]:22229 "EHLO eventhorizon.antefacto.net") by vger.kernel.org with ESMTP id ; Fri, 26 Apr 2002 18:45:42 -0400 Message-ID: <3CC9D865.80104@antefacto.com> Date: Fri, 26 Apr 2002 23:44:53 +0100 From: Padraig Brady User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc1) Gecko/20020417 X-Accept-Language: en-us, en MIME-Version: 1.0 To: linux-kernel@vger.kernel.org Subject: Re: [PATCH] 2.5.10 IDE 42 In-Reply-To: <1019549894.1450.41.camel@turbulence.megapathdsl.net> <3CC7E358.8050905@evision-ventures.com> <20020425172508.GK3542@suse.de> <20020425173439.GM3542@suse.de> <3CC904AA.7020706@evision-ventures.com> <20020426181049.5eb31b05.sebastian.droege@gmx.de> <3CC9C666.8020801@evision-ventures.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Martin Dalecki wrote: > Uz.ytkownik Sebastian Droege napisa?: > >> On Fri, 26 Apr 2002 09:41:30 +0200 >> Martin Dalecki wrote: >> >> Hi, >> >> @@ -584,27 +585,25 @@ >> drive->failures = 0; >> } else { >> drive->failures++; >> + char *msg = ""; >> >> My compiler won't compile that ;) >> Declare msg after the function's beginning and it compiles fine > > > Well it doesn't has to be the function it sufficient to be > the beginng of a block. However this is puzzling me, > becouse the gcc-3.1 snap eats the above just like if it > where a C++ complier!!! > > Thank you for pointing out. Note the "mixed declarations and code" @ http://www.gnu.org/software/gcc/gcc-3.0/c99status.html Padraig. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/