We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ejected
1 parent 6d7eff0 commit 416535aCopy full SHA for 416535a
1 file changed
supervisor/shared/usb/usb_msc_flash.c
@@ -26,8 +26,10 @@
26
#define LUN_COUNT 1
27
#endif
28
29
-static bool ejected[LUN_COUNT];
30
-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.
31
+static bool ejected[LUN_COUNT] = { [0 ... (LUN_COUNT - 1)] = true};
32
+static bool locked[LUN_COUNT] = {false};
33
34
#include "tusb.h"
35
0 commit comments