[U-Boot] [PATCH] drivers/bios_emulator/x86emu/ops2.c: Fix GCC 4.6 build warning

Wolfgang Denk wd at denx.de
Thu Nov 24 21:48:06 CET 2011


Dear Marek Vasut,

In message <201111241814.34611.marek.vasut at gmail.com> you wrote:
>
> > -    char *name = 0;
> > +    __maybe_unused char *name = 0;
> 
> I don't like this __maybe_unused stuff, it seems like you're hiding possible 
> errors.

I don't like it either, but there are cases where this is the cheapest
way to get the code clean again, and still working.

If you have a better proposal to make this file compile clean, without
using __maybe_unused, then please post your patch.

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
How come everyone's going so slow if it's called rush hour?


More information about the U-Boot mailing list