From patchwork Sun Sep 5 15:07:15 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Blue Swirl X-Patchwork-Id: 63840 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 1E47BB70AE for ; Mon, 6 Sep 2010 01:16:03 +1000 (EST) Received: from localhost ([127.0.0.1]:59616 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OsGwp-0003cr-K1 for incoming@patchwork.ozlabs.org; Sun, 05 Sep 2010 11:15:59 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=AV3VZwOdhoQQTZN76iaEtvOxj8BQO1K3jFTmTf67K24=; b=lOmG8kpSmxt9OfyM8l9R0Rfqc1cE1jhYBOXnacGch0ToVbd8RUaygXgK1aT1GvNDyn BhGDyh+NtWQRSY1SBLz7ASi21KZs8XHyu7xvwRjZ35XhhZb4SR2kOiZQrhmrtPVV+8oQ 0rGDeljVZBO+x6YFYwk4B760RjjbsSGiTO9eM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=oEOukUtkcFagz27unbfxnz7ZPu+4mozJnT9f+v8sIqGi87mcDYLPyjkZXZDYSdSmui N6tNJUgGTgIoXCY2wNEtittFATD87I3bI05olcC6GPDM/e0o+FUUHjqeoJZqSIm79pYH CMO6uh3FW9rOpO0yDCe723TtlUszLPQSqcXgI= Received: by 10.224.79.131 with SMTP id p3mr362607qak.354.1283699255233; Sun, 05 Sep 2010 08:07:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.240.135 with HTTP; Sun, 5 Sep 2010 08:07:15 -0700 (PDT) From: Blue Swirl Date: Sun, 5 Sep 2010 15:07:15 +0000 Message-ID: To: qemu-devel X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH 13/15] Use a few more gcc warning flags X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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