mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
![]() Compiling in release mode with UBSAN gives me the following compiler warning: ``` In function ‘mb_wchar_to_sjismac’: mbfilter_sjis.c:1419:89: warning: ‘i’ may be used uninitialized [-Wmaybe-uninitialized] 1419 | buf->state = (i << 24) | (index << 16) | (w & 0xFFFF); | ^~ mbfilter_sjis.c:1398:42: note: ‘i’ was declared here 1398 | for (int i = 0; i < code_tbl_m_len; i++) { | ^ ``` Since the if condition will always be taken after the goto, we can get rid of the warning by moving the label inside the if. Signed-off-by: Alex Dowad <alexinbeijing@gmail.com> |
||
---|---|---|
.. | ||
libmbfl | ||
tests | ||
ucgendat | ||
common_codepoints.txt | ||
config.m4 | ||
config.w32 | ||
CREDITS | ||
gen_rare_cp_bitvec.php | ||
mb_gpc.c | ||
mb_gpc.h | ||
mbstring.c | ||
mbstring.h | ||
mbstring.stub.php | ||
mbstring_arginfo.h | ||
php_mbregex.c | ||
php_mbregex.h | ||
php_onig_compat.h | ||
php_unicode.c | ||
php_unicode.h | ||
rare_cp_bitvec.h | ||
unicode_data.h |