From: Markus Armbruster Date: Thu, 14 Oct 2010 09:19:04 +0000 (+0200) Subject: configure: Support disabling warnings in $gcc_flags X-Git-Tag: pull-nvme-20200902~11020 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1e027be7e91d854d7a0132e4a32bdf222c33dcfe;p=qemu-nvme.git configure: Support disabling warnings in $gcc_flags -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 Signed-off-by: Blue Swirl --- diff --git a/configure b/configure index a079a494a4..5f4d7180b5 100755 --- a/configure +++ b/configure @@ -154,7 +154,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