|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-devel
Re: [Xen-devel] Build errors with latest xen-unstable from staging
 
Ian Campbell wrote:
> On Sun, 2011-02-06 at 19:01 +0000, Kamala Narasimhan wrote:
> In the Linux kernel they have a macro to annotate such instances:
>         /*
>          * A trick to suppress uninitialized variable warning without 
> generating any
>          * code
>          */
>         #define uninitialized_var(x) x = x
>         
> Do we want something similar?
> 
But why obfuscate a warning that is there for a good reason in most cases?
Aren't we better off initializing the variable or use a compiler option to
suppress it if we must?
Kamala
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 
 |   
 
 | 
    | 
  
  
    |   | 
    |