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 From: Markus Armbruster References: Date: Thu, 14 Oct 2010 11:19:04 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] [PATCH] configure: Support disabling warnings in $gcc_flags List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel@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 -- 1.7.2.3