[U-Boot] [PATCH V2 1/7] Expand POST memory test to support arch-depended implementation.

Scott Wood scottwood at freescale.com
Tue Sep 28 20:53:28 CEST 2010


On Tue, 28 Sep 2010 19:31:30 +0200
Wolfgang Denk <wd at denx.de> wrote:

> > +__attribute__((weak))
> > +int arch_memory_test_advance(u32 *vstart, u32 *size, phys_addr_t *phys_offset)
> > +{
> > +	return 1;
> > +}
> 
> Unused arguments?
> 
> Don't you get compiler warnings for these?

Such warnings are not part of -Wall, which is a good thing, as
the arguments may be there to satisfy an interface (esp. with function
pointers or conditional compilation) and not because this instance of
the function actually needs them.  This seems to be the case here.

-Scott



More information about the U-Boot mailing list