mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
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
This commit is contained in:
parent
89691ed879
commit
5f6c432806
1 changed files with 1 additions and 1 deletions
|
|
@ -678,7 +678,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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue