projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bee5a5f
)
configure: Modify detection of supported warning options
author
Stefan Weil
<sw@weilnetz.de>
Wed, 4 Jan 2012 21:47:16 +0000
(22:47 +0100)
committer
Stefan Hajnoczi
<stefanha@linux.vnet.ibm.com>
Fri, 13 Jan 2012 10:36:59 +0000
(10:36 +0000)
Reversing the order of the warning options and -Werror is important
when clang is used instead of gcc. It changes nothing for gcc.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
configure
patch
|
blob
|
history
diff --git
a/configure
b/configure
index eb9a01d657c3898d3b1ccb168af60cb04a70f93f..467e87bf098b2ac3f6224801a1a2fbbf41f26f29 100755
(executable)
--- a/
configure
+++ b/
configure
@@
-1105,7
+1105,7
@@
cat > $TMPC << EOF
int main(void) { return 0; }
EOF
for flag in $gcc_flags; do
- if compile_prog "
$flag -Werror
" "" ; then
+ if compile_prog "
-Werror $flag
" "" ; then
QEMU_CFLAGS="$QEMU_CFLAGS $flag"
fi
done