aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-07-18 15:10:23 +0100
committerBlue Swirl <blauwirbel@gmail.com>2012-07-31 20:05:41 +0000
commit7ace252a6af1a05aa1ee3d08cf093a46f8a00ad0 (patch)
tree263b058ec8057416e17429ab53d0c8b714aace05
parentcaa50971f2e14b4c2c67bf2c40edd50be15679c2 (diff)
configure: Fix errors in test for__sync_fetch_and_and
The old test code raises two compiler warnings which are errors since commit 417c9d72d48275d19c60861896efd4962d21aca2. 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>
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index ab17b404a7..8a8ad27e20 100755
--- a/configure
+++ b/configure
@@ -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);
}