]> git.dujemihanovic.xyz Git - u-boot.git/commit
splash: fix build breakage with newer llvm-7
authorAnatolij Gustschin <agust@denx.de>
Wed, 30 Oct 2019 14:04:10 +0000 (15:04 +0100)
committerAnatolij Gustschin <agust@denx.de>
Thu, 31 Oct 2019 08:10:34 +0000 (09:10 +0100)
commit2ad8494c0fd7279aa9a7f73aff3fc38895e77711
tree7037ffe5f09867a6289547d6f7b66d71a337bd88
parent412326d1bc2d346d7b4faad6fa547eaf065681a2
splash: fix build breakage with newer llvm-7

Some configurations (i.e. sandbox) result in unused
splash_display_banner() and we get build errors like:

  common/splash.c:148:20: error: unused function 'splash_display_banner' [-Werror,-Wunused-function]
  static inline void splash_display_banner(void) { }

Drop empty inline function and add guards around the call.

Fixes: d2a8271c8851 ("splash: fix splash banner output")
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Reported-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/splash.c