From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biS9E-0007Nn-0J for qemu-devel@nongnu.org; Fri, 09 Sep 2016 16:11:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1biS98-0000aG-Vs for qemu-devel@nongnu.org; Fri, 09 Sep 2016 16:11:38 -0400 Received: from mail-yb0-x242.google.com ([2607:f8b0:4002:c09::242]:36587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biS98-0000a2-Os for qemu-devel@nongnu.org; Fri, 09 Sep 2016 16:11:34 -0400 Received: by mail-yb0-x242.google.com with SMTP id u125so1768617ybg.3 for ; Fri, 09 Sep 2016 13:11:34 -0700 (PDT) Sender: Richard Henderson References: <1472935202-3342-1-git-send-email-rth@twiddle.net> <87mvjg53e8.fsf@linaro.org> <3489a6ea-9a34-69d6-fd90-39cb42096b89@twiddle.net> <87lgz050t3.fsf@linaro.org> From: Richard Henderson Message-ID: Date: Fri, 9 Sep 2016 13:11:31 -0700 MIME-Version: 1.0 In-Reply-To: <87lgz050t3.fsf@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v3 00/34] cmpxchg-based emulation of atomics List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Alex_Benn=c3=a9e?= Cc: qemu-devel@nongnu.org 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);