From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:41830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjWN8-0007Ul-Qb for qemu-devel@nongnu.org; Sat, 07 Jan 2012 08:31:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RjWN7-0005oq-TV for qemu-devel@nongnu.org; Sat, 07 Jan 2012 08:31:46 -0500 From: Stefan Weil Date: Wed, 4 Jan 2012 22:47:16 +0100 Message-Id: <1325713636-31975-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH] configure: Modify detection of supported warning options List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Stefan Weil Reversing the order of the warning options and -Werror is important when clang is used instead of gcc. It changes nothing for gcc. Signed-off-by: Stefan Weil --- configure | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 640e815..93622e7 100755 --- a/configure +++ b/configure @@ -1100,7 +1100,7 @@ cat > $TMPC << EOF int main(void) { return 0; } EOF for flag in $gcc_flags; do - if compile_prog "$flag -Werror" "" ; then + if compile_prog "-Werror $flag" "" ; then QEMU_CFLAGS="$QEMU_CFLAGS $flag" fi done -- 1.7.0.4