diff options
author | Peter Maydell | 2013-08-05 21:16:40 +0200 |
---|---|---|
committer | Michael Tokarev | 2013-09-01 17:06:26 +0200 |
commit | 714290979abf551d5116346e4fbd3d54eb24bd12 (patch) | |
tree | cea9503f7f4a914ea5f8d487797d83fed5547383 /configure | |
parent | rdma: silly ipv6 bugfix (diff) | |
download | qemu-714290979abf551d5116346e4fbd3d54eb24bd12.tar.gz qemu-714290979abf551d5116346e4fbd3d54eb24bd12.tar.xz qemu-714290979abf551d5116346e4fbd3d54eb24bd12.zip |
configure: disable clang -Wstring-plus-int warning
Some versions of clang will warn about adding integers to strings:
disas/i386.c:4753:23: error: adding 'char' to a string does not append
to the string [-Werror,-Wstring-plus-int]
oappend ("%es:" + intel_syntax);
~~~~~~~^~~~~~~~~~~~~~
disas/i386.c:4753:23: note: use array indexing to silence this warning
oappend ("%es:" + intel_syntax);
^
& [ ]
disas/i386.c uses this idiom to to skip a "%" prefix if using intel
rather than AT&T syntax. This seems like a reasonable thing to do,
and I don't think anybody contributing to QEMU is likely to believe
that '+' is a string concatenation operator in C, so just disable
-Wstring-plus-int.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1204,6 +1204,7 @@ gcc_flags="-Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers $gcc_ gcc_flags="-Wmissing-include-dirs -Wempty-body -Wnested-externs $gcc_flags" gcc_flags="-Wendif-labels $gcc_flags" gcc_flags="-Wno-initializer-overrides $gcc_flags" +gcc_flags="-Wno-string-plus-int $gcc_flags" # Note that we do not add -Werror to gcc_flags here, because that would # enable it for all configure tests. If a configure test failed due # to -Werror this would just silently disable some features, |