Skip to content

Commit 07e5caf

Browse files
Supress -Wunused-parameter when PICO_STDIO_ENABLE_CRLF_SUPPORT is unset (earlephilhower#998)
1 parent 0041f4b commit 07e5caf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/rp2_common/pico_stdio/stdio.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,10 @@ void stdio_set_translate_crlf(stdio_driver_t *driver, bool enabled) {
315315
}
316316
driver->crlf_enabled = enabled;
317317
#else
318+
// Suppress -Wunused-parameter
319+
(void)driver;
320+
(void)enabled;
321+
318322
panic_unsupported();
319323
#endif
320-
}
324+
}

0 commit comments

Comments
 (0)