From 8794b95a725c7e9b567e192a1fbceeff1edf0e1a Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Mon, 30 Dec 2019 23:32:23 -0600 Subject: Fix As3525 SD unused parameter warning Change-Id: I0a4bbcf94e9cadf43a822c1cb2f2dad3bd4f7588 --- firmware/target/arm/as3525/sd-as3525.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'firmware') diff --git a/firmware/target/arm/as3525/sd-as3525.c b/firmware/target/arm/as3525/sd-as3525.c index 86286fa985..70e0778d2b 100644 --- a/firmware/target/arm/as3525/sd-as3525.c +++ b/firmware/target/arm/as3525/sd-as3525.c @@ -229,7 +229,9 @@ static void enable_controller(bool on, const int drive) CGU_IDE &= ~(IDE_INTERFACE_CLK); /* interface disable */ bitclr32(&CGU_PERI, CGU_NAF_CLOCK_ENABLE); } -#endif +#else + (void) on; +#endif /* ndef BOOTLOADER */ } #if defined(HAVE_MULTIDRIVE) || defined(HAVE_HOTSWAP) else @@ -1002,4 +1004,3 @@ int sd_event(long id, intptr_t data) return rc; } - -- cgit v1.2.3