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/
Home Products Support Community News


Re: [Xen-devel] [xen-4.0-testing test] 7147: regressions - FAIL

To: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [xen-4.0-testing test] 7147: regressions - FAIL
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: Mon, 23 May 2011 15:06:04 +0100
Cc: Olaf Hering <olaf@xxxxxxxxx>, Keir Fraser <keir.xen@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 23 May 2011 07:06:52 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1306153938.20576.96.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: <C9FDF91A.1AC1F%keir.xen@xxxxxxxxx> <1306153938.20576.96.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Ian Campbell writes ("Re: [Xen-devel] [xen-4.0-testing test] 7147: regressions 
- FAIL"):
> It seems like gcc (at least in Debian Squeeze) does some sort of lazy
> evaluation of -W options, which seems terribly unlikely but does seem to
> be reality. Try compiling the following always with
> -Wno-unused-but-set-variable but with and without -DHACK to see what I
> mean:
> $ gcc -Wno-unused-but-set-variable -DHACK ~/t.c
> /home/ianc/t.c: In function 'main':
> /home/ianc/t.c:6: warning: initialization makes pointer from integer without 
> a cast
> At top level:
> cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
> $ gcc -Wno-unused-but-set-variable ~/t.c
> $ cat ~/t.c

This is related to my efforts to try to make new warnings easier to
cope with in future.  Note that the "unrecognised -W option" message
is itself only a warning in squeeze (which is correct), but apparently
in lenny it is an error:

mariner:~/junk> gcc -Wno-unused-but-set-variable -DHACK t.c
t.c: In function 'main':
t.c:7: warning: initialization makes pointer from integer without a cast
At top level:
cc1: error: unrecognized command line option "-Wno-unused-but-set-variable"
mariner:~/junk> gcc -Wno-unused-but-set-variable t.c

That makes it harder, rather than easier, to figure out what's going
on and write correct Makefiles.


Xen-devel mailing list