From: Marcin Cieslak Subject: Re: [PATCH] Avoid clang prior initialization error when listing MTRR flags Date: Mon, 15 Sep 2014 10:59:49 +0000 (UTC) Message-ID: References: <1410627472-88435-1-git-send-email-saper@saper.info> <5416D2A80200007800034E50@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XTU0f-0006JU-Ag for xen-devel@lists.xenproject.org; Mon, 15 Sep 2014 10:59:53 +0000 In-Reply-To: <5416D2A80200007800034E50@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Mon, 15 Sep 2014, Jan Beulich wrote: >>>> On 13.09.14 at 18:57, wrote: >> generic.c:97:32: error: initializer overrides prior initialization of this [...] > Apart from the description above being excessive (quoting just one > of the error messages would completely suffice), I'm NAKing this > because it was intentionally coded the way it is. What I would > suggest instead is to enforce -Wno-initializer-overrides. Thanks for reviewing this! I will try to improve in the future. > > And as a side note - this change is more than just elimination of > the compiler warning. Good question how to avoid it. Do you prefer to spell out all cases or to use -Wno-initializer-overrides? Which initializer should compilers use? //Marcin