From patchwork Thu Oct 14 09:19:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Armbruster X-Patchwork-Id: 67804 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 018C71007D3 for ; Thu, 14 Oct 2010 20:20:46 +1100 (EST) Received: from localhost ([127.0.0.1]:57026 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6JzO-00037X-WA for incoming@patchwork.ozlabs.org; Thu, 14 Oct 2010 05:20:43 -0400 Received: from [140.186.70.92] (port=47502 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6Jxs-0002pM-SG for qemu-devel@nongnu.org; Thu, 14 Oct 2010 05:19:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6Jxr-0001Lr-SI for qemu-devel@nongnu.org; Thu, 14 Oct 2010 05:19:08 -0400 Received: from oxygen.pond.sub.org ([213.239.205.148]:39016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6Jxr-0001Li-Np for qemu-devel@nongnu.org; Thu, 14 Oct 2010 05:19:07 -0400 Received: from blackfin.pond.sub.org (pD951BEC8.dip.t-dialin.net [217.81.190.200]) by oxygen.pond.sub.org (Postfix) with ESMTPA id 219A02E2B4A; Thu, 14 Oct 2010 11:19:05 +0200 (CEST) Received: by blackfin.pond.sub.org (Postfix, from userid 500) id 7BF5386; Thu, 14 Oct 2010 11:19:04 +0200 (CEST) From: Markus Armbruster To: Blue Swirl References: Date: Thu, 14 Oct 2010 11:19:04 +0200 Message-ID: MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH] configure: Support disabling warnings in $gcc_flags X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org -Wall enables a bunch of warnings at once. configure puts it after $gcc_flags. This makes it impossible to disable warnings enabled by -Wall there. Fix by putting configured flags last. Signed-off-by: Markus Armbruster --- configure | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configure b/configure index d303061..3a12f92 100755 --- a/configure +++ b/configure @@ -154,7 +155,7 @@ int main(void) { return 0; } EOF for flag in $gcc_flags; do if compile_prog "-Werror $QEMU_CFLAGS" "-Werror $flag" ; then - QEMU_CFLAGS="$flag $QEMU_CFLAGS" + QEMU_CFLAGS="$QEMU_CFLAGS $flag" fi done