summaryrefslogtreecommitdiff
path: root/examples/device
diff options
context:
space:
mode:
authorRémi Berthoz <[email protected]>2026-01-07 18:05:11 +0100
committerRémi Berthoz <[email protected]>2026-01-07 18:05:19 +0100
commit1de6608c83aa781224baae2fe033c06c964fa056 (patch)
tree37e184f1b8d56532adc0c0f4b3fd08de32acb3d8 /examples/device
parent0e5241aa83c52792959ad8a2ef0535a3759530a7 (diff)
printer device: replace [[maybe_unused]] with (void)
Diffstat (limited to 'examples/device')
-rw-r--r--examples/device/printer_to_hid/src/usb_descriptors.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/device/printer_to_hid/src/usb_descriptors.c b/examples/device/printer_to_hid/src/usb_descriptors.c
index 7d529e724..9a88cb891 100644
--- a/examples/device/printer_to_hid/src/usb_descriptors.c
+++ b/examples/device/printer_to_hid/src/usb_descriptors.c
@@ -105,7 +105,8 @@ const uint8_t *tud_descriptor_device_cb(void) {
static uint16_t string_descriptor_buffer[STRING_DESCRIPTOR_MAX_LENGTH + 1];
// TinyUSB GET STRING DESCRIPTOR callback.
-const uint16_t *tud_descriptor_string_cb(uint8_t index, [[maybe_unused]] uint16_t langid) {
+const uint16_t *tud_descriptor_string_cb(uint8_t index, uint16_t langid) {
+ (void)langid;
size_t utf16_string_length;
if (index == LANGID) {