Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262313AbUCGUFR (ORCPT ); Sun, 7 Mar 2004 15:05:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262316AbUCGUFR (ORCPT ); Sun, 7 Mar 2004 15:05:17 -0500 Received: from khan.acc.umu.se ([130.239.18.139]:9634 "EHLO khan.acc.umu.se") by vger.kernel.org with ESMTP id S262313AbUCGUFM (ORCPT ); Sun, 7 Mar 2004 15:05:12 -0500 Date: Sun, 7 Mar 2004 21:05:09 +0100 From: David Weinehall To: Rene Herman Cc: Horst von Brand , Eyal Lebedinsky , linux-kernel@vger.kernel.org Subject: Re: Linux 2.4.26-pre2 Message-ID: <20040307200509.GT19111@khan.acc.umu.se> Mail-Followup-To: Rene Herman , Horst von Brand , Eyal Lebedinsky , linux-kernel@vger.kernel.org References: <404AB6C7.7010803@eyal.emu.id.au> <200403071619.i27GJkOZ003480@eeyore.valparaiso.cl> <20040307192504.GS19111@khan.acc.umu.se> <404B7D8D.1060801@keyaccess.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <404B7D8D.1060801@keyaccess.nl> User-Agent: Mutt/1.4.1i X-Accept-Language: Swedish, English X-GPG-Fingerprint: 7ACE 0FB0 7A74 F994 9B36 E1D1 D14E 8526 DC47 CA16 X-GPG-Key: http://www.acc.umu.se/~tao/files/pubkey_dc47ca16.gpg.asc Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1262 Lines: 31 On Sun, Mar 07, 2004 at 08:52:45PM +0100, Rene Herman wrote: > David Weinehall wrote: > > >>>In standard C we declare all variables at the top of a function. While > >>>some compilers allow extension, it is not a good idea to get used to > >>>them if we want portable code. > >> > >>Oh, come on. This is _kernel_ code, it won't ever be compiled with > >>anything > >>not GCC-compatible. > > > >Ugly warts don't become any less ugly just because gcc accepts them... > > Mixing code and declarations is also c99. For (a sane) gcc specifically, > you have to tell it -std=c89 -pedantic to have it even complain. Ok, didn't know that. Still doesn't make it any less ugly, though. There are quite a lot of things that a valid in C. That doesn't mean they should be used... Regards: David Weinehall -- /) David Weinehall /) Northern lights wander (\ // Maintainer of the v2.0 kernel // Dance across the winter sky // \) http://www.acc.umu.se/~tao/ (/ Full colour fire (/ - 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/