mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
configure: Fix errors in test for__sync_fetch_and_and
The old test code raises two compiler warnings which are errors since
commit 417c9d72d4
.
These errors could result in compilations with compiler flag
-march486 (so all nice features of newer processors got lost).
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
caa50971f2
commit
7ace252a6a
1 changed files with 1 additions and 1 deletions
2
configure
vendored
2
configure
vendored
|
@ -2799,7 +2799,7 @@ fi
|
|||
# specification is necessary
|
||||
if test "$vhost_net" = "yes" && test "$cpu" = "i386"; then
|
||||
cat > $TMPC << EOF
|
||||
int sfaa(unsigned *ptr)
|
||||
static int sfaa(int *ptr)
|
||||
{
|
||||
return __sync_fetch_and_and(ptr, 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue