qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 00/34] cmpxchg-based emulation of atomics


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH v3 00/34] cmpxchg-based emulation of atomics
Date: Fri, 9 Sep 2016 13:11:31 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 09/09/2016 12:29 PM, Alex Bennée wrote:
config-temp/qemu-conf.c:12:8: error: unused variable 'is_host64' 
[-Werror=unused-variable]
cc1: all warnings being treated as errors

Try this.


r~


diff --git a/configure b/configure
index 519de5d..bd59cdd 100755
--- a/configure
+++ b/configure
@@ -4479,7 +4479,7 @@ int main(void)
   __atomic_exchange_8(&x, y, 0);
   __atomic_fetch_add_8(&x, y, 0);
 #else
-  char is_host64[sizeof(void *) >= sizeof(uint64_t) ? 1 : -1];
+  typedef char is_host64[sizeof(void *) >= sizeof(uint64_t) ? 1 : -1];
   __sync_lock_test_and_set(&x, y);
   __sync_val_compare_and_swap(&x, y, 0);
   __sync_fetch_and_add(&x, y);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]