From c1d5f868714accd6780913e652d8a884368c60d3 Mon Sep 17 00:00:00 2001 From: xoviat Date: Wed, 12 Apr 2023 18:11:55 -0500 Subject: [PATCH] stm32/rcc: fix warnings --- embassy-stm32/src/rcc/f4.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/embassy-stm32/src/rcc/f4.rs b/embassy-stm32/src/rcc/f4.rs index 3e2345c6..e8dfba01 100644 --- a/embassy-stm32/src/rcc/f4.rs +++ b/embassy-stm32/src/rcc/f4.rs @@ -34,13 +34,13 @@ pub struct Config { } #[cfg(stm32f410)] -unsafe fn setup_i2s_pll(vco_in: u32, plli2s: Option) -> Option { +unsafe fn setup_i2s_pll(_vco_in: u32, _plli2s: Option) -> Option { None } // Not currently implemented, but will be in the future #[cfg(any(stm32f411, stm32f412, stm32f413, stm32f423, stm32f446))] -unsafe fn setup_i2s_pll(vco_in: u32, plli2s: Option) -> Option { +unsafe fn setup_i2s_pll(_vco_in: u32, _plli2s: Option) -> Option { None } @@ -480,6 +480,7 @@ struct PllResults { use_pll: bool, pllsysclk: Option, pll48clk: Option, + #[allow(dead_code)] plli2sclk: Option, }