[U-Boot] [PATCH 4/6 v3] exports.c: fix warning: 'dummy' defined but not used

Wolfgang Denk wd at denx.de
Thu Jul 1 09:30:40 CEST 2010


Dear Mike Frysinger,

In message <201006301904.42571.vapier at gentoo.org> you wrote:
>
> > +static void dummy(void) __attribute__((unused));
> >  static void dummy(void)
> >  {
> >  }
> 
> put the attribute before the "static" and you shouldnt need the duplicate 
> prototype

Ah, that's the trick that does it.

Thanks.

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
Use C++ to confuse your enemies; use C to produce stable code.


More information about the U-Boot mailing list