You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/11/06 20:18:42 UTC
[incubator-nuttx] 04/08: Fix lc823450_i2s.c:277:7: error: variable 'n' is used uninitialized whenever switch default is taken
This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 7c88ef1e6ae8a5540bfc99fb2d7a3289bd6cb8a0
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Fri Nov 4 18:14:05 2022 +0800
Fix lc823450_i2s.c:277:7: error: variable 'n' is used uninitialized whenever switch default is taken
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
arch/arm/src/lc823450/lc823450_i2s.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/src/lc823450/lc823450_i2s.c b/arch/arm/src/lc823450/lc823450_i2s.c
index 7b3f2d770e..48af12ccb1 100644
--- a/arch/arm/src/lc823450/lc823450_i2s.c
+++ b/arch/arm/src/lc823450/lc823450_i2s.c
@@ -257,10 +257,10 @@ extern unsigned int XT1OSC_CLK;
static void _setup_audio_pll(uint32_t freq)
{
- DEBUGASSERT(24000000 == XT1OSC_CLK);
+ uint32_t m = 0;
+ uint32_t n = 0;
- uint32_t m;
- uint32_t n;
+ DEBUGASSERT(24000000 == XT1OSC_CLK);
switch (freq)
{