mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
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>
This commit is contained in:
parent
a21493e009
commit
3ffd710e12
6 changed files with 14 additions and 10 deletions
2
configure
vendored
2
configure
vendored
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue