Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 15 Dec 2000 15:57:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 15 Dec 2000 15:57:16 -0500 Received: from munchkin.spectacle-pond.org ([209.192.197.45]:13576 "EHLO munchkin.spectacle-pond.org") by vger.kernel.org with ESMTP id ; Fri, 15 Dec 2000 15:57:02 -0500 Date: Fri, 15 Dec 2000 15:31:30 -0500 From: Michael Meissner To: Andrea Arcangeli Cc: Franz Sirl , "Richard B. Johnson" , Mike Black , "linux-kernel@vger.kernel.or" Subject: Re: 2.2.18 signal.h Message-ID: <20001215153130.B24830@munchkin.spectacle-pond.org> In-Reply-To: <20001215175632.A17781@inspiron.random> <20001215184325.B17781@inspiron.random> <4.3.2.7.2.20001215185622.025f8740@mail.lauterbach.com> <20001215195433.G17781@inspiron.random> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20001215195433.G17781@inspiron.random>; from andrea@suse.de on Fri, Dec 15, 2000 at 07:54:33PM +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 15, 2000 at 07:54:33PM +0100, Andrea Arcangeli wrote: > On Fri, Dec 15, 2000 at 06:59:24PM +0100, Franz Sirl wrote: > > It's required by ISO C, and since that's the standard now, gcc spits out a > > warning. Just adding a ; is enough and already done for most stuff in > > 2.4.0-test12. > > I'm not complaining gcc folks, I just dislike the new behaviour in general, > it's inconsistent. > > This is wrong: > > x() > { > > switch (1) { > case 0: > case 1: > case 2: > case 3: > } > } > > and this is right: > > x() > { > > switch (1) { > case 0: > case 1: > case 2: > case 3: > ; > } > } > > Why am I required to put a `;' only in the last case and not in all > the previous ones? Or maybe gcc-latest is forgetting to complain about > the previous ones ;) Because neither