]> git.baikalelectronics.ru Git - uboot.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)
commita0f9728075fd46dd8f7689e126074070b8ef6fee
tree2de396f46391fac78a74690790f004d73a32d75b
parent7a1570734e5a1721769ff2aff5c0055c1c725c2b
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