QEMU does not compile cleanly under clang 3.5.0. These patches eliminate the avalanche of warnings and make the build usable.
v4: - Enable ccache workaround for configurations without -Werror, to suppress warnings as well. - Removed optimization from cc_has_warning_flag() - Renamed ccache variable to ccache_cpp2 v3: - Drop tricore patch, it's already being worked on elsewhere. - Factor out flag check test. v2: - Stole the series from Stefan - No changes to the -nopie patch, which I think was fine. - Fixed the -Wno-unknown-attributes patch. - Added a tricore fix for -Wabsolute-value - Added a workaround to help suppress ccache warnings The result is that you *should* be able to use clang 3.5.0 *with* ccache and -Werror and produce all targets. John Snow (3): configure: factor out supported flag check configure: silence glib unknown attribute __alloc_size__ configure: Add workaround for ccache and clang Stefan Hajnoczi (1): configure: handle clang -nopie argument warning configure | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 65 insertions(+), 16 deletions(-) -- 2.1.0
