configure: add -Werror to QEMU_CFLAGS early
commit417c9d72d48275d19c60861896efd4962d21aca2
authorAlexander Graf <agraf@suse.de>
Mon, 9 Jul 2012 12:38:08 +0000 (9 14:38 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 14 Jul 2012 10:48:03 +0000 (14 10:48 +0000)
treea6ad786ef8cb9abdb418625a1dbb61be47f2584e
parent66f27e63ae3d91876d348e38fb5af4b48ae6b8fb
configure: add -Werror to QEMU_CFLAGS early

We want all configure tests pass with -Werror if it is enabled. So we
need to update QEMU_CFLAGS early on to make sure we also pass it in to
all the compile test jobs.

This fixes a warning-became-error bug in nss for me with the default
configuration:

In file included from /usr/include/nss3/pkcs11t.h:1780,
                 from /usr/include/nss3/keythi.h:41,
                 from /usr/include/nss3/keyt.h:41,
                 from /usr/include/nss3/pk11pub.h:43,
                 from libcacard/vcard_emul_nss.c:21:
/usr/include/nss3/pkcs11n.h:365:26: error: "__GNUC_MINOR" is not defined

Signed-off-by: Alexander Graf <agraf@suse.de>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure