diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-10-02 20:27:55 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2024-10-03 12:29:55 +0100 |
commit | 28911f626864e73c579ea2ad5f5308d2e8c3fcd9 (patch) | |
tree | 5fc591f1b925ddad0418a108bc28bb68afbcc275 | |
parent | 34670dee56a6bd030094801b3da900b1d214b454 (diff) | |
download | gcc-28911f626864e73c579ea2ad5f5308d2e8c3fcd9.zip gcc-28911f626864e73c579ea2ad5f5308d2e8c3fcd9.tar.gz gcc-28911f626864e73c579ea2ad5f5308d2e8c3fcd9.tar.bz2 |
libstdc++: Fix some warnings seen during bootstrap
libstdc++-v3/ChangeLog:
* include/bits/locale_facets_nonio.tcc (money_put::__do_get):
Ignore -Wformat warning for __ibm128 arguments.
* include/tr1/tuple (ignore): Ignore -Wunused warning.
-rw-r--r-- | libstdc++-v3/include/bits/locale_facets_nonio.tcc | 3 | ||||
-rw-r--r-- | libstdc++-v3/include/tr1/tuple | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/libstdc++-v3/include/bits/locale_facets_nonio.tcc b/libstdc++-v3/include/bits/locale_facets_nonio.tcc index 5fddc1e..53553d1 100644 --- a/libstdc++-v3/include/bits/locale_facets_nonio.tcc +++ b/libstdc++-v3/include/bits/locale_facets_nonio.tcc @@ -637,6 +637,8 @@ _GLIBCXX_BEGIN_NAMESPACE_LDBL_OR_CXX11 #if defined _GLIBCXX_LONG_DOUBLE_ALT128_COMPAT \ && defined __LONG_DOUBLE_IEEE128__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wformat" // '%Lf' expects 'long double' extern "C" __typeof__(__builtin_snprintf) __glibcxx_snprintfibm128 __asm__("snprintf"); @@ -671,6 +673,7 @@ __typeof__(__builtin_snprintf) __glibcxx_snprintfibm128 __asm__("snprintf"); return __intl ? _M_insert<true>(__s, __io, __fill, __digits) : _M_insert<false>(__s, __io, __fill, __digits); } +#pragma GCC diagnostic pop #endif _GLIBCXX_END_NAMESPACE_LDBL_OR_CXX11 diff --git a/libstdc++-v3/include/tr1/tuple b/libstdc++-v3/include/tr1/tuple index b5c62b5..f66090d 100644 --- a/libstdc++-v3/include/tr1/tuple +++ b/libstdc++-v3/include/tr1/tuple @@ -423,7 +423,7 @@ namespace tr1 // TODO: Put this in some kind of shared file. namespace { - _Swallow_assign ignore; + _Swallow_assign ignore __attribute__((__unused__)); } // anonymous namespace } |