Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 719419a

Browse files
Fix unterminated string GCC warnings in mbstring (#19192)
Necessary for for Werror builds
1 parent d292968 commit 719419a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎ext/mbstring/libmbfl/filters/mbfilter_cjk.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
* This macro converts uppercase ASCII values to Regional Indicator codepoints */
2222
#define NFLAGS(c) (0x1F1A5+((unsigned int)(c)))
2323

24-
static const char nflags_s[10][2] = {"CN", "DE", "ES", "FR", "GB", "IT", "JP", "KR", "RU", "US"};
24+
static const char nflags_s[10][2] ZEND_NONSTRING= {"CN", "DE", "ES", "FR", "GB", "IT", "JP", "KR", "RU", "US"};
2525
static const int nflags_code_kddi[10] = { 0x2549, 0x2546, 0x24C0, 0x2545, 0x2548, 0x2547, 0x2750, 0x254A, 0x24C1, 0x27F7 };
2626
static const int nflags_code_sb[10] = { 0x2B0A, 0x2B05, 0x2B08, 0x2B04, 0x2B07, 0x2B06, 0x2B02, 0x2B0B, 0x2B09, 0x2B03 };
2727

2828
#define EMIT_KEYPAD_EMOJI(c) do { *snd = (c); return 0x20E3; } while(0)
2929
#define EMIT_FLAG_EMOJI(country) do { *snd = NFLAGS((country)[0]); return NFLAGS((country)[1]); } while(0)
3030

31-
static const char nflags_kddi[6][2] = {"FR", "DE", "IT", "GB", "CN", "KR"};
32-
static const char nflags_sb[10][2] = {"JP", "US", "FR", "DE", "IT", "GB", "ES", "RU", "CN", "KR"};
31+
static const char nflags_kddi[6][2] ZEND_NONSTRING= {"FR", "DE", "IT", "GB", "CN", "KR"};
32+
static const char nflags_sb[10][2] ZEND_NONSTRING= {"JP", "US", "FR", "DE", "IT", "GB", "ES", "RU", "CN", "KR"};
3333

3434
/* number -> (ku*94)+ten value for telephone keypad character */
3535
#define DOCOMO_KEYPAD(n) ((n) == 0 ? 0x296F : (0x2965 + (n)))

‎ext/mbstring/libmbfl/filters/mbfilter_utf8.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ static int mbfl_filt_conv_wchar_utf8_mobile(int c, mbfl_convert_filter *filter)
725725
* This macro converts uppercase ASCII values to Regional Indicator codepoints */
726726
#define NFLAGS(c) (0x1F1A5+(int)(c))
727727

728-
static const char nflags_s[10][2] = {"CN","DE","ES","FR","GB","IT","JP","KR","RU","US"};
728+
static const char nflags_s[10][2] ZEND_NONSTRING= {"CN","DE","ES","FR","GB","IT","JP","KR","RU","US"};
729729
static const int nflags_code_kddi[10] = { 0x2549, 0x2546, 0x24C0, 0x2545, 0x2548, 0x2547, 0x2750, 0x254A, 0x24C1, 0x27F7 };
730730
static const int nflags_code_sb[10] = { 0x2B0A, 0x2B05, 0x2B08, 0x2B04, 0x2B07, 0x2B06, 0x2B02, 0x2B0B, 0x2B09, 0x2B03 };
731731

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /