Skip to content

arch/arm/stm32h5/i2c: Fix warning message about used but not initialized variables#18935

Merged
xiaoxiang781216 merged 1 commit into
apache:masterfrom
patrickelectric:unused
May 22, 2026
Merged

arch/arm/stm32h5/i2c: Fix warning message about used but not initialized variables#18935
xiaoxiang781216 merged 1 commit into
apache:masterfrom
patrickelectric:unused

Conversation

@patrickelectric
Copy link
Copy Markdown
Contributor

Summary

Fix "-Wmaybe-uninitialized" warning messages

Impact

Reduce noise of STM32H5 devices

Testing

nsh> i2c dev -b 1 03 77
NOTE: Some devices may not appear with this scan.
You may also try a scan with the -z flag to discover more devices using a zero-byte write request.
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- 1e -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- 76 --                         
nsh> i2c get -b 1 -a 0x76 -r 0x00
READ Bus: 1 Addr: 76 Subaddr: 00 Value: 60

BMP390 connected in 0x76

image

@github-actions github-actions Bot added Arch: arm Issues related to ARM (32-bit) architecture Size: XS The size of the change in this PR is very small labels May 22, 2026
… variables

Fix "-Wmaybe-uninitialized" warning messages

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
@xiaoxiang781216 xiaoxiang781216 merged commit 49d7959 into apache:master May 22, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arch: arm Issues related to ARM (32-bit) architecture Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants