[U-Boot] [PATCH 1/2] Move uninitialized_var() macro from ubi_uboot.h to compiler.h

Wolfgang Denk wd at denx.de
Tue Sep 1 20:11:41 CEST 2009


Dear Anton Vorontsov,

In message <20090901165803.GA3668 at 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 <avorontsov at ru.mvista.com>
> ---
>  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


More information about the U-Boot mailing list