Received: from eggs.gnu.org ([208.118.235.92]:43277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrDf4-0005YU-Rc for qemu-devel@nongnu.org; Tue, 17 Jul 2012 15:42:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrDf3-0008AD-Pe for qemu-devel@nongnu.org; Tue, 17 Jul 2012 15:42:22 -0400 Message-ID: <5005C01B.2010803@weilnetz.de> Date: Tue, 17 Jul 2012 21:42:19 +0200 From: Stefan Weil MIME-Version: 1.0 References: <1342546459-21993-1-git-send-email-i.mitsyanko@samsung.com> <5005A904.5000006@samsung.com> <5005AFA5.6080101@weilnetz.de> <5005BBD7.1000905@weilnetz.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] configure: fix ALSA configure test List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Blue Swirl , qemu-trivial , QEMU Developers , Anthony Liguori Am 17.07.2012 21:28, schrieb Peter Maydell: > On 17 July 2012 20:24, Stefan Weil wrote: >> The arguments why -Werror is a bad idea for some configure tests >> are reasonable. >> >> Nevertheless the QEMU community was able to produce thousands of >> lines of code which compile without a warning, so we should be able >> to create warning and error free code for a handful of configure >> tests. > The trouble is that the warnings and errors here don't cause the > build to fail noisily; that's a big distinction IMHO. > I suppose we could make compile_prog do something like: > * run the compile test > * if it fails => test failure as now > * if it succeeds (and we're doing a Werror build at all), > rerun the same test with -Werror > * if that fails, abort configure with an error message > Then we would have the same "make the problem obvious" effect > that plain -Werror provides for our main compilation. Good idea. Of course it will increase the time needed for running the default configure, but I think that's acceptable if we don't use it for the tests of the compiler warning options.