From: Heiko Schocher Date: Wed, 17 Jan 2018 06:00:37 +0000 (+0100) Subject: arm: bootm-fdt.c: fix compiler warning X-Git-Tag: v2018.03-rc1~60 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=020da843fc97d0945ad39b3f08a925cfc016fef3;p=u-boot arm: bootm-fdt.c: fix compiler warning compiling U-Boot with bosch_mpcxxxxd_sd_defconfig drops warning: arch/arm/lib/bootm-fdt.c: In function ‘arch_fixup_fdt’: arch/arm/lib/bootm-fdt.c:37:6: warning: unused variable ‘ret’ [-Wunused-variable] int ret = 0; ^~~ Fix it. Signed-off-by: Heiko Schocher --- diff --git a/arch/arm/lib/bootm-fdt.c b/arch/arm/lib/bootm-fdt.c index fcc2a0e214..83409a7ece 100644 --- a/arch/arm/lib/bootm-fdt.c +++ b/arch/arm/lib/bootm-fdt.c @@ -34,7 +34,7 @@ __weak int fdt_update_ethernet_dt(void *blob) int arch_fixup_fdt(void *blob) { - int ret = 0; + __maybe_unused int ret = 0; #if defined(CONFIG_ARMV7_NONSEC) || defined(CONFIG_OF_LIBFDT) bd_t *bd = gd->bd; int bank;