Fix yellow from 1951c17e0bc on targets with USB_NONE
rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
| Newsgroups | gmane.comp.systems.archos.rockbox.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 89cf5b57e6158ca9900c124f779b257e532fa92e Author: Solomon Peachy <[email protected]> Date: Mon Jan 26 20:34:49 2026 -0500 Fix yellow from 1951c17e0bc on targets with USB_NONE gui_usb_screen_run() is a do{} while(0) macro, resulting in an unused variable warning in the "caller" Change-Id: I4b4b00ef38decfb5cc9db0da3d81ad0c9a4207d1 diff --git a/apps/gui/usb_screen.h b/apps/gui/usb_screen.h index 6ee467988d..aaf5d58a3f 100644 --- a/apps/gui/usb_screen.h +++ b/apps/gui/usb_screen.h @@ -24,7 +24,7 @@ #include <stdint.h> #ifdef USB_NONE -#define gui_usb_screen_run(early_usb, seqnum) do {} while(0) +#define gui_usb_screen_run(early_usb, seqnum) do {(void)seqnum;} while(0) #else extern void gui_usb_screen_run(bool early_usb, intptr_t seqnum); #endif -- rockbox-cvs mailing list [email protected] https://lists.haxx.se/mailman/listinfo/rockbox-cvs