misc/language: mark arrays as nonstring for GCC 15

Fixes unterminated-string-initialization warnings.
This commit is contained in:
Kacper Michajłow committed 2025-04-28 15:54:12 +02:00
1 parent f8cef99033
commit 22aacb4008
2 files changed
+12 -2

No files matched your search

+2 -2
View File
@@ -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)},