[U-Boot] env_callback.h: spl: mark callback as maybe_unused

Tom Rini trini at ti.com
Mon Jul 21 22:42:48 CEST 2014


On Thu, Jul 10, 2014 at 08:38:35PM +0200, Jeroen Hofstee wrote:

> When static inline is used in a header file the function
> should preferably be inlined and if not possible made a
> static function. When declared inside a c file there is a
> static function, which might be inlined. Since SPL uses a
> define to declare the static inline it becomes part of the
> c file although it is declared in a header and clang will
> warn that you have introduced unused static functions. Add
> maybe_unused to prevent such warnings.
> 
> Signed-off-by: Jeroen Hofstee <jeroen at myspectrum.nl>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140721/9929c179/attachment.pgp>


More information about the U-Boot mailing list