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:
Earle F. Philhower, III 2024-11-19 11:42:46 -08:00 committed by GitHub
parent 89691ed879
commit 5f6c432806
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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