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:
Stefan Weil 2012-07-18 15:10:23 +01:00 committed by Blue Swirl
parent caa50971f2
commit 7ace252a6a
1 changed files with 1 additions and 1 deletions

2
configure vendored
View File

@ -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);
}