Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K3djg-0004nb-Q1 for qemu-devel@nongnu.org; Tue, 03 Jun 2008 17:08:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K3dje-0004nF-CE for qemu-devel@nongnu.org; Tue, 03 Jun 2008 17:08:03 -0400 Received: from [199.232.76.173] (port=33794 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3dje-0004nC-7r for qemu-devel@nongnu.org; Tue, 03 Jun 2008 17:08:02 -0400 Received: from fmmailgate01.web.de ([217.72.192.221]:57871) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K3djd-0006So-QF for qemu-devel@nongnu.org; Tue, 03 Jun 2008 17:08:02 -0400 Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate01.web.de (Postfix) with ESMTP id 2B3D0E243174 for ; Tue, 3 Jun 2008 23:07:58 +0200 (CEST) Received: from [91.18.118.241] (helo=[10.0.1.1]) by smtp08.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.109 #226) id 1K3djZ-0002mY-00 for qemu-devel@nongnu.org; Tue, 03 Jun 2008 23:07:58 +0200 Message-Id: From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: <20080603204313.GA9995@shareable.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v924) Subject: Re: [Qemu-devel] [PATCH] New qemu-img convert -B option to preserve the COW aspect of images and/or re-base them Date: Tue, 3 Jun 2008 23:07:36 +0200 References: <48459641.5040000@codemonkey.ws> <20080603194041.GE6899@shareable.org> <4845A5C4.6050309@codemonkey.ws> <20080603204313.GA9995@shareable.org> Sender: andreas.faerber@web.de Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Am 03.06.2008 um 22:43 schrieb Jamie Lokier: > Anthony Liguori wrote: >> It's sloppy. In general, using a non-portable feature for no good >> reason other than you can is bad practice (even if we do depend on >> GCC). > > It's 2008, the standard is called C99 for a reason. > > In 1998, we would have used C89 constructs like function prototypes, > wouldn't we? > > :-) > > If you don't want to use non-portable features, may I suggest > "gcc -std=c89". > > (Half joking, I use -Wdeclaration-after-statement myself to catch > this, since it became a standard GCC feature with no option to turn it > off and keep other GNU extensions. But then, I write code which is > more portable than QEMU and target older architectures.) Actually, I know someone maintaining a port of QEMU for BeOS, which uses GCC 2.95. Initially released in '99, that one is not compliant to C99. Of course I'm not asking for QEMU to fully work with 'ancient' GCCs, but where C99 is not strictly necessary, it would help with such admittedly rare corner cases. Andreas