From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 20 Oct 2007 17:16:32 +1000 From: David Gibson To: Jon Loeliger Subject: Re: [PATCH 2/4] DTC: Quiet a bogus "May be used uninitialized" warning. Message-ID: <20071020071632.GE26642@localhost.localdomain> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, Oct 19, 2007 at 12:42:58PM -0500, Jon Loeliger wrote: > > Signed-off-by: Jon Loeliger I don't like this one much. The warning is indeed bogus, and my compiler version, at least, doesn't generate it mulberryst:~/dtc$ gcc --version gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) Putting in the initializer would mean that even on non-broken compilers, we wouldn't get the warning if we ever changed the contained code so that it really should generate an unitialized variable warning. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson