WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] do_callback_op()'s second argument can beconst

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] do_callback_op()'s second argument can beconst
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Fri, 18 Jan 2008 15:44:29 +0000
Delivery-date: Fri, 18 Jan 2008 07:44:30 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C3B67211.1B073%Keir.Fraser@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4790CE5B.76E4.0078.0@xxxxxxxxxx> <C3B67211.1B073%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>>> Keir Fraser <Keir.Fraser@xxxxxxxxxxxx> 18.01.08 16:11 >>>
>On 18/1/08 15:05, "Jan Beulich" <jbeulich@xxxxxxxxxx> 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?
>> 
>> It fixes the build in the context of the other changes.
>
>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.

It's been a while since I wrote this, and I can't reproduce any issue anymore
when I remove it. I must have forgotten to undo that change once it wasn't
needed anymore - sorry about that.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel