mirror of
https://github.com/hathach/tinyusb.git
synced 2026-08-18 11:02:16 +00:00
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.
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user