]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix -Wunused-variable from <regex>
authorJonathan Wakely <jwakely@redhat.com>
Wed, 29 Oct 2025 21:37:18 +0000 (21:37 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 29 Oct 2025 21:41:12 +0000 (21:41 +0000)
commitcc78f8523832d693f9e1dd2f48964e27fb90b947
tree63b1686949419e4af31b8c174268475f3053284d
parent623cd25e688583b47014d08dc0519780afd381e4
libstdc++: Fix -Wunused-variable from <regex>

In r16-4709-gc55c1de3a9adb2 I meant to use the result of the
static_cast<char> for the rest of the function following it, but I
accidentally used the original variable __ch. This causes
-Wunused-variable warnings for the __c initialized from the cast.

This fixes the rest of the function to use __c instead of __ch.

libstdc++-v3/ChangeLog:

* include/bits/regex.tcc (regex_traits::value): Use __c instead
of __ch.
libstdc++-v3/include/bits/regex.tcc