diff options
| author | hathach <[email protected]> | 2026-07-23 11:38:26 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2026-07-24 14:55:59 +0700 |
| commit | 80a000e2f027cbeeda5a1a461b7c475ec22a3c91 (patch) | |
| tree | ca706a1d1bb0daf7653b76543c78878babca51b8 /hw | |
| parent | 8918c4fec4a99b174d480c043000fd4405678282 (diff) | |
fix(rp2040): make stdio_rtt_init static
LOGGER=rtt builds of any rp2040 example fail with -Werror=missing-prototypes
(stdio_rtt_init has no prototype and is only called from family.c).
Found by building cdc_msc -DLOG=2 -DLOGGER=rtt for raspberry_pi_pico.
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/bsp/rp2040/family.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/bsp/rp2040/family.c b/hw/bsp/rp2040/family.c index 55feec159..15f179656 100644 --- a/hw/bsp/rp2040/family.c +++ b/hw/bsp/rp2040/family.c @@ -153,7 +153,7 @@ static stdio_driver_t stdio_rtt = { .in_chars = stdio_rtt_read }; -void stdio_rtt_init(void) { +static void stdio_rtt_init(void) { stdio_set_driver_enabled(&stdio_rtt, true); } #endif |
