libstdc++: Avoid -Wmaybe-uninitialized warnings in text_encoding.cc
commitac913d5d518604c5baf7274bed76e3ff8f3e4c08
authorJonathan Wakely <jwakely@redhat.com>
Thu, 18 Jan 2024 12:40:52 +0000 (18 12:40 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 18 Jan 2024 12:43:32 +0000 (18 12:43 +0000)
treecd1c73fed0ce5620f2940c1e6369d0f80ba71db2
parentdb42a0a98916340af33338c08e6a7d328121b958
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.
libstdc++-v3/include/bits/unicode.h