From 07e5caf341bdd79610290a21a6cdc153542d1781 Mon Sep 17 00:00:00 2001 From: Zachary Kohnen Date: Tue, 6 Sep 2022 17:59:48 +0200 Subject: [PATCH] Supress -Wunused-parameter when PICO_STDIO_ENABLE_CRLF_SUPPORT is unset (#998) --- src/rp2_common/pico_stdio/stdio.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/rp2_common/pico_stdio/stdio.c b/src/rp2_common/pico_stdio/stdio.c index 75e9062..6f9405e 100644 --- a/src/rp2_common/pico_stdio/stdio.c +++ b/src/rp2_common/pico_stdio/stdio.c @@ -315,6 +315,10 @@ void stdio_set_translate_crlf(stdio_driver_t *driver, bool enabled) { } driver->crlf_enabled = enabled; #else + // Suppress -Wunused-parameter + (void)driver; + (void)enabled; + panic_unsupported(); #endif -} +} \ No newline at end of file