@@ -1933,7 +1933,6 @@ Perl_utf8_to_uv_msgs_helper_(const U8 * const s0,
1933
1933
1934
1934
while (possible_problems ) { /* Handle each possible problem */
1935
1935
char * message = NULL ;
1936
- U32 this_flag_bit = 0 ;
1937
1936
1938
1937
/* Each 'case' handles one problem given by a bit in
1939
1938
* 'possible_problems'. The lowest bit positions, as #defined in
@@ -1945,6 +1944,9 @@ Perl_utf8_to_uv_msgs_helper_(const U8 * const s0,
1945
1944
* it changes 'uv' looked at by the others */
1946
1945
1947
1946
U32 this_problem = 1U << lsbit_pos32 (possible_problems );
1947
+
1948
+ U32 this_flag_bit = this_problem ;
1949
+
1948
1950
possible_problems &= ~this_problem ;
1949
1951
1950
1952
/* Most case:s use this; overridden in a few */
@@ -1971,7 +1973,6 @@ Perl_utf8_to_uv_msgs_helper_(const U8 * const s0,
1971
1973
if (NEED_MESSAGE (WARN_UTF8 ,,)) {
1972
1974
message = Perl_form (aTHX_ "%s (empty string)" ,
1973
1975
malformed_text );
1974
- this_flag_bit = UTF8_GOT_EMPTY ;
1975
1976
}
1976
1977
}
1977
1978
@@ -1988,7 +1989,6 @@ Perl_utf8_to_uv_msgs_helper_(const U8 * const s0,
1988
1989
" with no preceding start byte)" ,
1989
1990
malformed_text ,
1990
1991
_byte_dump_string (s0 , 1 , 0 ), * s0 );
1991
- this_flag_bit = UTF8_GOT_CONTINUATION ;
1992
1992
}
1993
1993
}
1994
1994
@@ -2008,7 +2008,6 @@ Perl_utf8_to_uv_msgs_helper_(const U8 * const s0,
2008
2008
(int )avail_len ,
2009
2009
avail_len == 1 ? "" : "s" ,
2010
2010
(int )expectlen );
2011
- this_flag_bit = UTF8_GOT_SHORT ;
2012
2011
}
2013
2012
}
2014
2013
@@ -2033,7 +2032,6 @@ Perl_utf8_to_uv_msgs_helper_(const U8 * const s0,
2033
2032
printlen ,
2034
2033
s - s0 ,
2035
2034
(int ) expectlen ));
2036
- this_flag_bit = UTF8_GOT_NON_CONTINUATION ;
2037
2035
}
2038
2036
}
2039
2037
@@ -2058,7 +2056,6 @@ Perl_utf8_to_uv_msgs_helper_(const U8 * const s0,
2058
2056
else {
2059
2057
message = Perl_form (aTHX_ surrogate_cp_format , uv );
2060
2058
}
2061
- this_flag_bit = UTF8_GOT_SURROGATE ;
2062
2059
}
2063
2060
}
2064
2061
@@ -2082,7 +2079,6 @@ Perl_utf8_to_uv_msgs_helper_(const U8 * const s0,
2082
2079
2083
2080
pack_warn = packWARN (WARN_NONCHAR );
2084
2081
message = Perl_form (aTHX_ nonchar_cp_format , uv );
2085
- this_flag_bit = UTF8_GOT_NONCHAR ;
2086
2082
}
2087
2083
}
2088
2084
@@ -2151,7 +2147,6 @@ Perl_utf8_to_uv_msgs_helper_(const U8 * const s0,
2151
2147
small code points */
2152
2148
UNI_TO_NATIVE (uv ));
2153
2149
}
2154
- this_flag_bit = UTF8_GOT_LONG ;
2155
2150
}
2156
2151
}
2157
2152
@@ -2204,7 +2199,6 @@ Perl_utf8_to_uv_msgs_helper_(const U8 * const s0,
2204
2199
message = Perl_form (aTHX_ "%s: %s (overflows)" ,
2205
2200
malformed_text ,
2206
2201
_byte_dump_string (s0 , curlen , 0 ));
2207
- this_flag_bit = UTF8_GOT_OVERFLOW ;
2208
2202
}
2209
2203
}
2210
2204
@@ -2228,7 +2222,6 @@ Perl_utf8_to_uv_msgs_helper_(const U8 * const s0,
2228
2222
else {
2229
2223
message = Perl_form (aTHX_ super_cp_format , uv );
2230
2224
}
2231
- this_flag_bit = UTF8_GOT_SUPER ;
2232
2225
}
2233
2226
}
2234
2227
@@ -2288,8 +2281,6 @@ Perl_utf8_to_uv_msgs_helper_(const U8 * const s0,
2288
2281
* this iteration of the loop */
2289
2282
if (message ) {
2290
2283
if (msgs ) {
2291
- assert (this_flag_bit );
2292
-
2293
2284
if (* msgs == NULL ) {
2294
2285
* msgs = newAV ();
2295
2286
}
0 commit comments