From: Ian Jackson Subject: Re: [xen-4.0-testing test] 7147: regressions - FAIL Date: Mon, 23 May 2011 15:06:04 +0100 Message-ID: <19930.27084.78533.470851@mariner.uk.xensource.com> References: <1306153938.20576.96.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1306153938.20576.96.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: Olaf Hering , Keir Fraser , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org 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 mariner:~/junk> That makes it harder, rather than easier, to figure out what's going on and write correct Makefiles. Ian.