misc/language: mark arrays as nonstring for GCC 15
Fixes unterminated-string-initialization warnings.
This commit is contained in:
1 parent
f8cef99033
commit
22aacb4008
2 files changed
+12
-2
No files matched your search
+2
-2
@@ -26,8 +26,8 @@
|
||||
#define L(s) { #s, sizeof(#s) - 1 }
|
||||
|
||||
static const struct lang {
|
||||
struct { const char s[3]; uint8_t l; } match;
|
||||
struct { const char s[3]; uint8_t l; } canonical;
|
||||
struct { const char s[3] MP_NONSTRING; uint8_t l; } match;
|
||||
struct { const char s[3] MP_NONSTRING; uint8_t l; } canonical;
|
||||
} langmap[] = {
|
||||
{L(aa), L(aar)},
|
||||
{L(ab), L(abk)},
|
||||
|
||||
Reference in new issue
Block a user