[PATCH v1] libstdc++: Remove unused local type alias <format>.

Luc Grosheintz luc.grosheintz@gmail.com
Tue Oct 14 15:16:55 GMT 2025


After r16-4421-g59cabe08b57a26 the local type alias _String isn't used
anymore and therefore causes warnings when building the tests with
`-Wall -Wextra`.

libstdc++-v3/ChangeLog:

	* include/std/format (_M_format_range): Remove unused local type
	alias _String.

Signed-off-by: Luc Grosheintz <luc.grosheintz@gmail.com>
---
 libstdc++-v3/include/std/format | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libstdc++-v3/include/std/format b/libstdc++-v3/include/std/format
index 8ba6af6bd40..1102ac8f6e8 100644
--- a/libstdc++-v3/include/std/format
+++ b/libstdc++-v3/include/std/format
@@ -1426,7 +1426,6 @@ namespace __format
 	_M_format_range(_Rg&& __rg, basic_format_context<_Out, _CharT>& __fc) const
 	{
 	  using _Range = remove_reference_t<_Rg>;
-	  using _String = basic_string<_CharT>;
 	  using _String_view = basic_string_view<_CharT>;
 	  if constexpr (!is_lvalue_reference_v<_Rg>)
 	    return _M_format_range<_Range&>(__rg, __fc);
-- 
2.51.0



More information about the Libstdc++ mailing list