diff options
author | William Wilgus <me.theuser@yahoo.com> | 2019-12-30 23:32:23 -0600 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2019-12-30 23:41:46 -0600 |
commit | 8794b95a725c7e9b567e192a1fbceeff1edf0e1a (patch) | |
tree | 4d7f06c53b4264d3c2c8f7de25f5393101d7ad28 /firmware | |
parent | 9f336217c28dd16daeafc05e5019db0e0dd5c350 (diff) |
Fix As3525 SD unused parameter warning
Change-Id: I0a4bbcf94e9cadf43a822c1cb2f2dad3bd4f7588
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/arm/as3525/sd-as3525.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; } - |