This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 9643ee78aa arch/arm/stm32h5: Fix i2c compiler warnings.
9643ee78aa is described below
commit 9643ee78aa15fb75ee3eadef8a517d7994503d13
Author: Joshua Lange <[email protected]>
AuthorDate: Mon Apr 14 14:47:26 2025 -0500
arch/arm/stm32h5: Fix i2c compiler warnings.
Add missing break statements to i2c driver to avoid complaints from
compiler.
Signed-off-by: Tyler Bennett <[email protected]>
---
arch/arm/src/stm32h5/stm32_i2c.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/src/stm32h5/stm32_i2c.c b/arch/arm/src/stm32h5/stm32_i2c.c
index 91698c16da..94573e3e66 100644
--- a/arch/arm/src/stm32h5/stm32_i2c.c
+++ b/arch/arm/src/stm32h5/stm32_i2c.c
@@ -1363,6 +1363,7 @@ static void stm32_i2c_setclock(struct stm32_i2c_priv_s
*priv,
break;
#endif
default:
+ break;
}
/* Set i2c_ker_ck period ti2cclk in nanoseconds */
@@ -2470,6 +2471,7 @@ static int stm32_i2c_init(struct stm32_i2c_priv_s *priv)
break;
#endif
default:
+ break;
}
/* Force a frequency update */