[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 9/9] Add note about some other options potentially w
From: |
Daniel P. Berrange |
Subject: |
[Qemu-devel] [PATCH 9/9] Add note about some other options potentially worth enabling |
Date: |
Mon, 2 Apr 2012 11:50:16 +0100 |
From: "Daniel P. Berrange" <address@hidden>
There are a few other GCC warning options likely worth
enabling, but it is not practical with the level of warnings
generated. Add a note about them for anyone motiviated to
address it in the future
* configure: Add -Wclobbered, -Wmissing-field-initializers,
-Woverride-init, -Wsign-compare, -Wunused-parameter,
-Wunused-but-set-parameter, -Wpointer-arith, -Wmissing-noreturn,
-Wjump-misses-init but leave disabled for now
Signed-off-by: Daniel P. Berrange <address@hidden>
---
configure | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index 175901f..2d62337 100755
--- a/configure
+++ b/configure
@@ -1199,6 +1199,26 @@ gcc_flags="$gcc_flags -Wformat-extra-args"
gcc_flags="$gcc_flags -Wformat-zero-length"
gcc_flags="$gcc_flags -Wformat-nonliteral"
+# Some other potentially worth enabling once issues are fixed
+# False positives in cpu-exec.c
+#gcc_flags="$gcc_flags -Wclobbered"
+# Many many violations
+#gcc_flags="$gcc_flags -Wmissing-field-initializers"
+# Quite a few (intentional?) overrides
+#gcc_flags="$gcc_flags -Woverride-init"
+# Many many violations
+#gcc_flags="$gcc_flags -Wsign-compare"
+# Many many violations
+#gcc_flags="$gcc_flags -Wunused-parameter"
+# Strange violations in mips helper
+#gcc_flags="$gcc_flags -Wunused-but-set-parameter"
+# Many many violations
+#gcc_flags="$gcc_flags -Wpointer-arith"
+# Many many violations
+#gcc_flags="$gcc_flags -Wmissing-noreturn"
+# Many many violations
+#gcc_flags="$gcc_flags -Wjump-misses-init"
+
cat > $TMPC << EOF
int main(void) { return 0; }
EOF
--
1.7.7.6
- [Qemu-devel] Fix enablement of some compiler warning flags & add some more, Daniel P. Berrange, 2012/04/02
- [Qemu-devel] [PATCH 1/9] Move all compiler warning/optimization flags to the same place, Daniel P. Berrange, 2012/04/02
- [Qemu-devel] [PATCH 2/9] Fix checking for compiler flag support, Daniel P. Berrange, 2012/04/02
- [Qemu-devel] [PATCH 5/9] Add in a large number of extra GCC warnings, Daniel P. Berrange, 2012/04/02
- [Qemu-devel] [PATCH 9/9] Add note about some other options potentially worth enabling,
Daniel P. Berrange <=
- [Qemu-devel] [PATCH 3/9] Print out progress when checking compiler flags, Daniel P. Berrange, 2012/04/02
- [Qemu-devel] [PATCH 8/9] Add more format string warning flags, Daniel P. Berrange, 2012/04/02