From: Wolfgang Denk Date: Tue, 01 Sep 2009 20:11:41 +0200 Subject: [U-Boot] [PATCH 1/2] Move uninitialized_var() macro from ubi_uboot.h to compiler.h In-Reply-To: <20090901165803.GA3668@oksana.dev.rtsoft.ru> References: <20090901165803.GA3668@oksana.dev.rtsoft.ru> Message-ID: <20090901181141.2D46F834A950@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Anton Vorontsov, In message <20090901165803.GA3668@oksana.dev.rtsoft.ru> you wrote: > This is needed so that we could use this macro for non-UBI code. > > Signed-off-by: Anton Vorontsov > --- > include/compiler.h | 3 +++ > include/ubi_uboot.h | 4 +--- > 2 files changed, 4 insertions(+), 3 deletions(-) > > diff --git a/include/compiler.h b/include/compiler.h > index 272fd3c..e602cce 100644 > --- a/include/compiler.h > +++ b/include/compiler.h > @@ -122,4 +122,7 @@ typedef unsigned int uintptr_t; > > #endif > > +/* compiler options */ > +#define uninitialized_var(x) x = x Please excuse my ignorance, but where and what for is such a definition useful? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Faith may be defined briefly as an illogical belief in the occurence of the improbable. - H. L. Mencken