diff --git a/supervisor/shared/usb/usb_msc_flash.c b/supervisor/shared/usb/usb_msc_flash.c index 2b92035d97199..c7a8232d228ad 100644 --- a/supervisor/shared/usb/usb_msc_flash.c +++ b/supervisor/shared/usb/usb_msc_flash.c @@ -26,8 +26,10 @@ #define LUN_COUNT 1 #endif -static bool ejected[LUN_COUNT]; -static bool locked[LUN_COUNT]; +// The ellipsis range in the designated initializer of `ejected` is not standard C, +// but it works in both gcc and clang. +static bool ejected[LUN_COUNT] = { [0 ... (LUN_COUNT - 1)] = true}; +static bool locked[LUN_COUNT] = {false}; #include "tusb.h"
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: