From: "Jan Beulich" Subject: Re: [PATCH] do_callback_op()'s second argument can be const Date: Fri, 18 Jan 2008 15:50:49 +0000 Message-ID: <4790D8E9.76E4.0078.0@novell.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> Keir Fraser 18.01.08 16:44 >>> >On 18/1/08 15:11, "Keir Fraser" wrote: > >>>> I certainly don't see how the chunk below fixes >>>> anything -- doesn't it take two lines to state what took one line = before? >>>=20 >>> It fixes the build in the context of the other changes. >>=20 >> What's the difference between assigning from a variable that is void* = and >> assigning from a variable that you have cast to void*? Is this just to = get >> round some stupid compiler warning that shouldn't happen in the first = place? >> That's why I hate type attributes: const, volatile, and the rest. = Stupid >> waste of time. > >I removed the chunk and I can't get the build to fail on i386 or x86_64 = with >gcc 3.4 or gcc 4.1. Perhaps you build with more anal gcc warning = settings? Neither can I, as said already. I'm not using more strict compiler = settings, but one thing I could imagine is that I first tested the constructs = involved outside of Xen (and then with -Wall -W) and got some warning. But as said in the other reply, it may also be that this was simply a leftover. Jan