Skip to content

Commit

Permalink
Fix minor uninitialized warnings from G++ 12.3.0
Browse files Browse the repository at this point in the history
Use empty initializer list for struct clearing, avoiding a pedantic
warning from G++ 12 and 14.

Fixes #1785
  • Loading branch information
earlephilhower committed Nov 14, 2024
1 parent efe2103 commit d7ca993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rp2_common/hardware_pio/include/hardware/pio.h
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ static inline void sm_config_set_mov_status(pio_sm_config *c, enum pio_mov_statu
* \return the default state machine configuration which can then be modified.
*/
static inline pio_sm_config pio_get_default_sm_config(void) {
pio_sm_config c = {0};
pio_sm_config c = {};
#if PICO_PIO_USE_GPIO_BASE
c.pinhi = -1;
#endif
Expand Down

0 comments on commit d7ca993

Please sign in to comment.