* [Qemu-devel] [PATCH 13/15] Use a few more gcc warning flags
@ 2010-09-10 21:00 Blue Swirl
2010-09-20 20:45 ` [Qemu-devel] " Blue Swirl
0 siblings, 1 reply; 3+ messages in thread
From: Blue Swirl @ 2010-09-10 21:00 UTC (permalink / raw)
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 <blauwirbel@gmail.com>
---
configure | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/configure b/configure
index 29d3548..7dc0f77 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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Qemu-devel] Re: [PATCH 13/15] Use a few more gcc warning flags
2010-09-10 21:00 [Qemu-devel] [PATCH 13/15] Use a few more gcc warning flags Blue Swirl
@ 2010-09-20 20:45 ` Blue Swirl
0 siblings, 0 replies; 3+ messages in thread
From: Blue Swirl @ 2010-09-20 20:45 UTC (permalink / raw)
To: qemu-devel
On Fri, Sep 10, 2010 at 9:00 PM, Blue Swirl <blauwirbel@gmail.com> wrote:
> 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.
I noticed that in fact -Wclobbered produced warnings, so I removed the
flag before committing. Perhaps those warnings should be investigated
further.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] [PATCH 13/15] Use a few more gcc warning flags
@ 2010-09-05 15:07 Blue Swirl
0 siblings, 0 replies; 3+ messages in thread
From: Blue Swirl @ 2010-09-05 15:07 UTC (permalink / raw)
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 <blauwirbel@gmail.com>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-20 21:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-10 21:00 [Qemu-devel] [PATCH 13/15] Use a few more gcc warning flags Blue Swirl
2010-09-20 20:45 ` [Qemu-devel] " Blue Swirl
-- strict thread matches above, loose matches on Subject: below --
2010-09-05 15:07 [Qemu-devel] " Blue Swirl
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.