diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2020-06-24 12:34:17 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2020-06-24 12:34:17 +0100 |
commit | 25920dd18ad12ea501309b1487366e22f35db631 (patch) | |
tree | 24a2810e4a6e3967e41987b393f99ed675b65ea3 /libstdc++-v3 | |
parent | be50843754b4c4d47f0d628a84b3dbf2a4145a43 (diff) | |
download | gcc-25920dd18ad12ea501309b1487366e22f35db631.zip gcc-25920dd18ad12ea501309b1487366e22f35db631.tar.gz gcc-25920dd18ad12ea501309b1487366e22f35db631.tar.bz2 |
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.
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/include/bits/stl_algobase.h | 3 | ||||
-rw-r--r-- | libstdc++-v3/include/std/charconv | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/libstdc++-v3/include/bits/stl_algobase.h b/libstdc++-v3/include/bits/stl_algobase.h index 4fc8850..ff5b450 100644 --- a/libstdc++-v3/include/bits/stl_algobase.h +++ b/libstdc++-v3/include/bits/stl_algobase.h @@ -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; diff --git a/libstdc++-v3/include/std/charconv b/libstdc++-v3/include/std/charconv index 77a72d4..8fbf640 100644 --- a/libstdc++-v3/include/std/charconv +++ b/libstdc++-v3/include/std/charconv @@ -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; |