Skip to content

Commit 5f6c432

Browse files
Fix minor uninitialized warnings from G++ 12.3.0 (#1786)
Use empty initializer list for struct clearing, avoiding a pedantic warning from G++ 12 and 14. Fixes #1785
1 parent 89691ed commit 5f6c432

File tree

1 file changed

+1
-1
lines changed
  • src/rp2_common/hardware_pio/include/hardware

1 file changed

+1
-1
lines changed

src/rp2_common/hardware_pio/include/hardware/pio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ static inline void sm_config_set_mov_status(pio_sm_config *c, enum pio_mov_statu
678678
* \return the default state machine configuration which can then be modified.
679679
*/
680680
static inline pio_sm_config pio_get_default_sm_config(void) {
681-
pio_sm_config c = {0};
681+
pio_sm_config c = {};
682682
#if PICO_PIO_USE_GPIO_BASE
683683
c.pinhi = -1;
684684
#endif

0 commit comments

Comments
 (0)