Skip to content

Commit d7ca993

Browse files
Fix minor uninitialized warnings from G++ 12.3.0
Use empty initializer list for struct clearing, avoiding a pedantic warning from G++ 12 and 14. Fixes #1785
1 parent efe2103 commit d7ca993

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
@@ -647,7 +647,7 @@ static inline void sm_config_set_mov_status(pio_sm_config *c, enum pio_mov_statu
647647
* \return the default state machine configuration which can then be modified.
648648
*/
649649
static inline pio_sm_config pio_get_default_sm_config(void) {
650-
pio_sm_config c = {0};
650+
pio_sm_config c = {};
651651
#if PICO_PIO_USE_GPIO_BASE
652652
c.pinhi = -1;
653653
#endif

0 commit comments

Comments
 (0)