Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix minor unused/uninitialized warnings from GCC 12.3.0 #1786

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 = {0, 0, 0, 0};
earlephilhower marked this conversation as resolved.
Show resolved Hide resolved
#if PICO_PIO_USE_GPIO_BASE
c.pinhi = -1;
#endif
Expand Down
3 changes: 2 additions & 1 deletion src/rp2_common/hardware_timer/include/hardware/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,8 @@ static inline uint timer_hardware_alarm_get_irq_num(__unused timer_hw_t *timer,
* \param timer the timer instance
* \param alarm_num the alarm number
*/
static inline uint hardware_alarm_get_irq_num(timer_hw_t *timer, uint alarm_num) {
static inline uint hardware_alarm_get_irq_num(__unused timer_hw_t *timer, uint alarm_num) {
earlephilhower marked this conversation as resolved.
Show resolved Hide resolved

return timer_hardware_alarm_get_irq_num(PICO_DEFAULT_TIMER_INSTANCE(), alarm_num);
}

Expand Down