Supress -Wunused-parameter when PICO_STDIO_ENABLE_CRLF_SUPPORT is unset (#998)

This commit is contained in:
Zachary Kohnen 2022-09-06 17:59:48 +02:00 committed by GitHub
parent 0041f4b7fd
commit 07e5caf341
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -315,6 +315,10 @@ void stdio_set_translate_crlf(stdio_driver_t *driver, bool enabled) {
} }
driver->crlf_enabled = enabled; driver->crlf_enabled = enabled;
#else #else
// Suppress -Wunused-parameter
(void)driver;
(void)enabled;
panic_unsupported(); panic_unsupported();
#endif #endif
} }