From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=53500 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OsGoi-0007NT-Tc for qemu-devel@nongnu.org; Sun, 05 Sep 2010 11:07:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OsGoh-0000dv-Pn for qemu-devel@nongnu.org; Sun, 05 Sep 2010 11:07:36 -0400 Received: from mail-qw0-f45.google.com ([209.85.216.45]:40432) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OsGoh-0000do-Nc for qemu-devel@nongnu.org; Sun, 05 Sep 2010 11:07:35 -0400 Received: by qwh5 with SMTP id 5so3362464qwh.4 for ; Sun, 05 Sep 2010 08:07:35 -0700 (PDT) MIME-Version: 1.0 From: Blue Swirl Date: Sun, 5 Sep 2010 15:07:15 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: [Qemu-devel] [PATCH 13/15] Use a few more gcc warning flags List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel If the compiler supports the following warning flags, use them: -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wmissing-include-dirs -Wclobbered Currently, these flags don't produce any warnings. Signed-off-by: Blue Swirl --- configure | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 47bbe39..6e4917a 100755 --- a/configure +++ b/configure @@ -138,7 +138,10 @@ QEMU_CFLAGS="-D_FORTIFY_SOURCE=2 $QEMU_CFLAGS" QEMU_CFLAGS="-I. -I\$(SRC_PATH) $QEMU_CFLAGS" LDFLAGS="-g $LDFLAGS" -gcc_flags="-Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-all" +gcc_flags="-Wold-style-declaration -Wold-style-definition -Wtype-limits" +gcc_flags="-Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers $gcc_flags" +gcc_flags="-Wmissing-include-dirs -Wclobbered $gcc_flags" +gcc_flags="-fstack-protector-all $gcc_flags" cat > $TMPC << EOF int main(void) { return 0; } EOF -- 1.6.2.4