[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 00 of 45] gcc 4.6 compile fixes for xen-unstable



Keir Fraser writes ("Re: [Xen-devel] [PATCH 00 of 45] gcc 4.6 compile fixes for 
xen-unstable"):
> We should just disable the warning. Job done, don't need to take the uglier
> "fixes".

I don't think we really want lots of unused variables being assigned
to, do we ?  In some cases the function computing the value may be
doing pointless work and so this might even improve performance.

So I think -Wset-but-unused-variable is fine with -Werror too in the
long run but we'll have to have it with
-Wno-error-set-but-unused-variable (or whatever the syntax is) until
the compiler becomes widespread.

Ian.

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.