summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorBlue Swirl2010-09-18 09:01:48 +0200
committerBlue Swirl2010-09-18 09:01:48 +0200
commit3ffd710e12ce64478abc027e92fe94e1089ac91c (patch)
treeac9c7acb10abd4ecee917c2ed7b1f770f8126963 /configure
parentUse a few more gcc warning flags (diff)
downloadqemu-3ffd710e12ce64478abc027e92fe94e1089ac91c.tar.gz
qemu-3ffd710e12ce64478abc027e92fe94e1089ac91c.tar.xz
qemu-3ffd710e12ce64478abc027e92fe94e1089ac91c.zip
Use gcc warning flag -Wempty-body
If the compiler supports the warning flag -Wempty-body, use it. Adjust the code to avoid the warnings. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 506f29ceb2..80497aab75 100755
--- a/configure
+++ b/configure
@@ -140,7 +140,7 @@ LDFLAGS="-g $LDFLAGS"
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 $gcc_flags"
+gcc_flags="-Wmissing-include-dirs -Wempty-body $gcc_flags"
gcc_flags="-fstack-protector-all $gcc_flags"
cat > $TMPC << EOF
int main(void) { return 0; }