projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d14768
)
Use gcc warning flag -Wtype-limits
author
Blue Swirl
<blauwirbel@gmail.com>
Sat, 18 Sep 2010 05:53:15 +0000
(
05:53
+0000)
committer
Blue 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
patch
|
blob
|
history
diff --git
a/configure
b/configure
index
4061cb7
..
29d3548
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