]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Use gcc warning flag -Wtype-limits
authorBlue Swirl <blauwirbel@gmail.com>
Sat, 18 Sep 2010 05:53:15 +0000 (05:53 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 18 Sep 2010 05:53:15 +0000 (05:53 +0000)
If the compiler supports the warning flag -Wtype-limits, use it.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure

index 4061cb7045e0e265976f311811ea83f3ab864e97..29d3548ac8253bbd4817f0efa83b716c982b197c 100755 (executable)
--- a/configure
+++ b/configure
@@ -138,7 +138,7 @@ 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 -fstack-protector-all"
+gcc_flags="-Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-all"
 cat > $TMPC << EOF
 int main(void) { return 0; }
 EOF