]> git.dujemihanovic.xyz Git - u-boot.git/commit
common/console.c: Fix unused warning with console_doenv()
authorTom Rini <trini@konsulko.com>
Wed, 30 Oct 2019 13:18:43 +0000 (09:18 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 7 Nov 2019 03:54:28 +0000 (22:54 -0500)
commit5e63c96aa7b4e7fd8758cdc4753eece3a42481e0
tree2de396f46391fac78a74690790f004d73a32d75b
parent0f282c1876af26cc2c8c018ae6293a691561011e
common/console.c: Fix unused warning with console_doenv()

Newer versions of LLVM-7 will provide an unused function warning over
console_doenv() in the case of SYS_CONSOLE_IS_IN_ENV not being enabled
as can be the case in SPL.  Add guards around this function.

Signed-off-by: Tom Rini <trini@konsulko.com>
common/console.c