]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix some warnings seen during bootstrap
authorJonathan Wakely <jwakely@redhat.com>
Wed, 2 Oct 2024 19:27:55 +0000 (20:27 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 3 Oct 2024 11:29:55 +0000 (12:29 +0100)
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.

libstdc++-v3/include/bits/locale_facets_nonio.tcc
libstdc++-v3/include/tr1/tuple

index 5fddc1e3b269e09b346140873db021a1ad90622b..53553d113b23c3c9e358c7eda82c9a3c882a6d5e 100644 (file)
@@ -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
index b5c62b585a9acfa2c4c5f20e81c5497ed40c1d78..f66090d363179052e568948e7176b773b8a5129e 100644 (file)
@@ -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
 }