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] Build errors with latest xen-unstable from staging

To: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Subject: Re: [Xen-devel] Build errors with latest xen-unstable from staging
From: Kamala Narasimhan <kamala.narasimhan@xxxxxxxxx>
Date: Mon, 07 Feb 2011 08:48:10 -0500
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 07 Feb 2011 05:50:00 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=1QckV2Z4lBHlCW/UbUQmmPPpr6uk5fnXfUt03Wdjll0=; b=woICUJT3pud8RAYqq3MgyFWFT6L6NyzFB/Ka9NPexpY8hPpOpb1RYLepgH1Tj6LgGp jC6nu6r82S9MTXIWwhxPXiX32WscHkXs1MdpbfGacEFZ+pkfW2RaBfWGEhIomPJsLeum +wuUEPgDovuWk71Es5th67yH/sWUqPDrFtCXE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=NT1Jngs9jN7m+VIvikZw7kNHUyXU+e4pzcL/BK+PLJtpbOHR2RvC28N6ZBXMI8MVMr VWLAugcewqjCLrKp+FoY/6sWBehC2URHbIAwnc7LUimbXnTQL8DHric2Mlkok1qBnm/d 6KBaCgcTUFr9VJCzXhElO5eVPjrgStmpF8fcE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1297072022.13091.753.camel@xxxxxxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4D4EF01F.5050106@xxxxxxxxx> <1297072022.13091.753.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.24 (X11/20101027)
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