From: "Jan Beulich" Subject: Re: [PATCH 1/1] hvm.c: Prevent gcc uninitialised var warning Date: Thu, 26 Mar 2015 07:48:04 +0000 Message-ID: <5513C7C4020000780006DBEA@mail.emea.novell.com> References: <1427119288-19348-1-git-send-email-dslutz@verizon.com> <5512CE05.6010105@citrix.com> <5512E6CC020000780006D883@mail.emea.novell.com> <551314AA.3020204@terremark.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <551314AA.3020204@terremark.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Don Slutz Cc: Ian Murray , Andrew Cooper , Keir Fraser , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 25.03.15 at 21:03, wrote: > On 03/25/15 11:48, Jan Beulich wrote: >>>>> On 25.03.15 at 16:02, wrote: >>> As an aside, the compiler is in a very easy position to spot this. The >>> error means that GCC has positively identified a basic block which does >>> use bufioreq_pfn before it has been initialised. >>> > > If the compiler is right, how come the messages says: > > may be used > > which to me says that it's determination is not 100% No, that's a wrong interpretation of the wording - it instead means that there is at least one path where the variable gets initialized, and at least one where that's not provably the case. As opposed to a variable being used uninitialized no matter what path leads to the use site. Jan