Received: from eggs.gnu.org ([2001:4830:134:3::10]:44876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5UoS-0003W5-9k for qemu-devel@nongnu.org; Fri, 20 Oct 2017 06:46:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5UoO-0003yN-9g for qemu-devel@nongnu.org; Fri, 20 Oct 2017 06:46:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47104) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e5UoO-0003y5-3e for qemu-devel@nongnu.org; Fri, 20 Oct 2017 06:45:56 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EDFBE5F73B for ; Fri, 20 Oct 2017 10:45:54 +0000 (UTC) References: <20171020101219.2378-1-pbonzini@redhat.com> <1b56a63f-ab38-219b-6b2c-2a43c343e5f0@redhat.com> <03c6bfa2-77b1-8ab6-482b-466aa2ac96b7@redhat.com> From: Laszlo Ersek Message-ID: <45f2f4cb-6385-9d50-0521-80528f7e18c1@redhat.com> Date: Fri, 20 Oct 2017 12:45:53 +0200 MIME-Version: 1.0 In-Reply-To: <03c6bfa2-77b1-8ab6-482b-466aa2ac96b7@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] build: disable -Wmissing-braces on older compilers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org On 10/20/17 12:37, Paolo Bonzini wrote: > On 20/10/2017 12:27, Laszlo Ersek wrote: >>> +if compile_object "-Werror" "" ; then >>> + : >>> +else >> Is this an established idiom for the configure script, in place of: >> >> if ! compile_object "-Werror" "" ; then >> >> ? >> >> Looks good to me otherwise. > > I tend not use "if !". In general that's just me, but in this case I > think it's useful to point out that a successful compile does nothing; > generally it's the successful compile that adjusts command line arguments. Thanks for the explanation. Reviewed-by: Laszlo Ersek Cheers Laszlo