aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-07-30 15:09:12 +0100
committerPeter Maydell <peter.maydell@linaro.org>2012-07-30 15:09:41 +0100
commitadfc2d6546246fafeebbd1e3ece2f5360ca74736 (patch)
treea18ac5989bf5920ca862a0d54b639e31cc36e106
parent4778b9f29555d7761f72ef5d451810a692f3169e (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>
-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);
}