Use gcc warning flag -Wtype-limits
If the compiler supports the warning flag -Wtype-limits, use it. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
7d1476898f
commit
6e15cb5f6d
2
configure
vendored
2
configure
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user