From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jtk5h-0001sy-2V for qemu-devel@nongnu.org; Wed, 07 May 2008 09:53:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jtk5g-0001sh-9h for qemu-devel@nongnu.org; Wed, 07 May 2008 09:53:52 -0400 Received: from [199.232.76.173] (port=60445 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jtk5g-0001sc-06 for qemu-devel@nongnu.org; Wed, 07 May 2008 09:53:52 -0400 Received: from ug-out-1314.google.com ([66.249.92.175]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jtk5f-0003w6-KC for qemu-devel@nongnu.org; Wed, 07 May 2008 09:53:51 -0400 Received: by ug-out-1314.google.com with SMTP id j40so163452ugd.4 for ; Wed, 07 May 2008 06:53:48 -0700 (PDT) Message-ID: Date: Wed, 7 May 2008 15:53:48 +0200 From: "andrzej zaborowski" Subject: Re: [Qemu-devel] Re: [4363] MusicPal: fix gcc4 build (Jan Kiszka). In-Reply-To: <200805071253.45209.paul@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4820810A.6060607@web.de> <200805071253.45209.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: qemu-devel@nongnu.org On 07/05/2008, Paul Brook wrote: > > I'm not sure what's wrong with void * arithmetics though. They are > > specified (somewhere) to work as if the type was a char *, and the > > only annoyance is that you have to remember that. > > > It doesn't work in C++ for a start. > I thought it was a GCC extension, though I could be wrong about that. Sorry, you're right. The specs say that a void pointer should have the representation and alignment requirements of a char pointer and I interpreted it wrongly. -- Please do not print this email unless absolutely necessary. Spread environmental awareness.