|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-devel
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
 | 
 
| <Prev in Thread] | Current Thread | [Next in Thread> |  | 
[Xen-devel] [PATCH 41 of 45] gcc-4.6 compile fix:	xen/common/tmem_xen.c, (continued)
 |  |  | 
  
    |  |  |