qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 5/9] Add in a large number of extra GCC warnings
Date: Mon,  2 Apr 2012 11:50:12 +0100	[thread overview]
Message-ID: <1333363816-1691-6-git-send-email-berrange@redhat.com> (raw)
In-Reply-To: <1333363816-1691-1-git-send-email-berrange@redhat.com>

From: "Daniel P. Berrange" <berrange@redhat.com>

Add in a large number of extra GCC warnings which don't have any
current code violations

* configure. Add in warning flags: -Wunused, -Wunknown-pragmas,
-Wstrict-aliasing, -Wcast-align, -Wredundant-decls, -Winvalid-pch,
-Wvolatile-register-var, -Wdisabled-optimization,
-Wbuiltin-macro-redefined, -Wmudflap, -Wpacked-bitfield-compat,
-Wsync-nand, -Wattributes, -Wcoverage-mismatch, -Wmultichar,
-Wcpp, -Wdeprecated-declarations, -Wdiv-by-zero, -Wnormalized=nfc,
-Woverflow, -Wpointer-to-int-cast, -Wpragmas, -Wtrampolines

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
---
 configure |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 28b5dd5..524458c 100755
--- a/configure
+++ b/configure
@@ -1166,6 +1166,33 @@ gcc_flags="$gcc_flags -Wempty-body"
 gcc_flags="$gcc_flags -Wnested-externs"
 gcc_flags="$gcc_flags -Wendif-labels"
 gcc_flags="$gcc_flags -Wframe-larger-than=131072"
+gcc_flags="$gcc_flags -Wunused"
+gcc_flags="$gcc_flags -Wunknown-pragmas"
+gcc_flags="$gcc_flags -Wstrict-aliasing"
+gcc_flags="$gcc_flags -Wcast-align"
+gcc_flags="$gcc_flags -Wredundant-decls"
+gcc_flags="$gcc_flags -Winvalid-pch"
+gcc_flags="$gcc_flags -Wvolatile-register-var"
+gcc_flags="$gcc_flags -Wdisabled-optimization"
+gcc_flags="$gcc_flags -Wbuiltin-macro-redefined"
+gcc_flags="$gcc_flags -Wmudflap"
+gcc_flags="$gcc_flags -Wpacked-bitfield-compat"
+gcc_flags="$gcc_flags -Wsync-nand"
+gcc_flags="$gcc_flags -Wattributes"
+gcc_flags="$gcc_flags -Wcoverage-mismatch"
+gcc_flags="$gcc_flags -Wmultichar"
+gcc_flags="$gcc_flags -Wcpp"
+gcc_flags="$gcc_flags -Wdeprecated-declarations"
+gcc_flags="$gcc_flags -Wdiv-by-zero"
+gcc_flags="$gcc_flags -Wmultichar"
+gcc_flags="$gcc_flags -Wnormalized=nfc"
+gcc_flags="$gcc_flags -Woverflow"
+gcc_flags="$gcc_flags -Wpointer-to-int-cast"
+gcc_flags="$gcc_flags -Wpragmas"
+gcc_flags="$gcc_flags -Wtrampolines"
+gcc_flags="$gcc_flags -Wmissing-parameter-type"
+gcc_flags="$gcc_flags -Wuninitialized"
+
 cat > $TMPC << EOF
 int main(void) { return 0; }
 EOF
-- 
1.7.7.6

  parent reply	other threads:[~2012-04-02 10:50 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-02 10:50 [Qemu-devel] Fix enablement of some compiler warning flags & add some more Daniel P. Berrange
2012-04-02 10:50 ` [Qemu-devel] [PATCH 1/9] Move all compiler warning/optimization flags to the same place Daniel P. Berrange
2012-04-02 16:19   ` Stefan Weil
2012-04-02 10:50 ` [Qemu-devel] [PATCH 2/9] Fix checking for compiler flag support Daniel P. Berrange
2012-04-02 12:29   ` Peter Maydell
2012-04-02 16:28   ` Stefan Weil
2012-04-02 10:50 ` [Qemu-devel] [PATCH 3/9] Print out progress when checking compiler flags Daniel P. Berrange
2012-04-02 13:56   ` Peter Maydell
2012-04-02 14:00     ` Daniel P. Berrange
2012-04-02 16:31   ` Stefan Weil
2012-04-02 10:50 ` [Qemu-devel] [PATCH 4/9] Remove 4 MB stack frame usage from sheepdog Daniel P. Berrange
2012-04-02 10:50 ` Daniel P. Berrange [this message]
2012-04-02 10:50 ` [Qemu-devel] [PATCH 6/9] Fix bit test to use & instead of && and enable -Wlogical-op warning Daniel P. Berrange
2012-04-02 12:27   ` Peter Maydell
2012-04-02 16:02     ` Maksim Kozlov
2012-04-02 10:50 ` [Qemu-devel] [PATCH 7/9] Add -Wmissing-format-attribute & fix problems it finds Daniel P. Berrange
2012-04-02 12:49   ` Andreas Färber
2012-04-02 10:50 ` [Qemu-devel] [PATCH 8/9] Add more format string warning flags Daniel P. Berrange
2012-04-02 12:13   ` Peter Maydell
2012-04-02 12:17     ` Daniel P. Berrange
2012-04-02 14:04       ` Peter Maydell
2012-04-02 14:22         ` Daniel P. Berrange
2012-04-02 14:32           ` Peter Maydell
2012-04-02 14:34             ` Daniel P. Berrange
2012-04-02 10:50 ` [Qemu-devel] [PATCH 9/9] Add note about some other options potentially worth enabling Daniel P. Berrange
2012-04-02 16:48   ` Stefan Weil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1333363816-1691-6-git-send-email-berrange@redhat.com \
    --to=berrange@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).