libstdc++: Fix warnings with -Wsystem-headers

libstdc++-v3/ChangeLog:

	* include/bits/stl_algobase.h (__find_if): Add FALLTHRU markers.
	* include/std/charconv (__detail::__to_chars): Avoid
	-Wsign-compare warning.
This commit is contained in:
Jonathan Wakely 2020-06-24 12:34:17 +01:00
parent be50843754
commit 25920dd18a
2 changed files with 4 additions and 1 deletions

View File

@ -2092,14 +2092,17 @@ _GLIBCXX_END_NAMESPACE_ALGO
if (__pred(__first))
return __first;
++__first;
// FALLTHRU
case 2:
if (__pred(__first))
return __first;
++__first;
// FALLTHRU
case 1:
if (__pred(__first))
return __first;
++__first;
// FALLTHRU
case 0:
default:
return __last;

View File

@ -142,7 +142,7 @@ namespace __detail
'u', 'v', 'w', 'x', 'y', 'z'
};
while (__val >= __base)
while (__val >= (unsigned)__base)
{
auto const __quo = __val / __base;
auto const __rem = __val % __base;