libstdc++: Avoid -Wmaybe-uninitialized warnings in text_encoding.cc
These variables are only read from if we haven't reached the end of either range, in which case they're guaranteed to be initialized to the next alphanumeric character. But we can just initialize them to make the compiler happy. libstdc++-v3/ChangeLog: * include/bits/unicode.h (__charset_alias_match): Initialize __var_a and __var_b.
This commit is contained in:
parent
db42a0a989
commit
ac913d5d51
1 changed files with 1 additions and 1 deletions
|
@ -1084,7 +1084,7 @@ inline namespace __v15_1_0
|
|||
while (true)
|
||||
{
|
||||
// Find the value of the next alphanumeric character in each string.
|
||||
unsigned char __val_a, __val_b;
|
||||
unsigned char __val_a{}, __val_b{};
|
||||
while (__ptr_a != __end_a
|
||||
&& (__val_a = __map(*__ptr_a, __num_a)) == 127)
|
||||
++__ptr_a;
|
||||
|
|
Loading…
Add table
Reference in a new issue