Skip to content
Snippets Groups Projects
Unverified Commit 28911f62 authored by Jonathan Wakely's avatar Jonathan Wakely Committed by Jonathan Wakely
Browse files

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.
parent 34670dee
No related branches found
No related tags found
No related merge requests found
...@@ -637,6 +637,8 @@ _GLIBCXX_BEGIN_NAMESPACE_LDBL_OR_CXX11 ...@@ -637,6 +637,8 @@ _GLIBCXX_BEGIN_NAMESPACE_LDBL_OR_CXX11
#if defined _GLIBCXX_LONG_DOUBLE_ALT128_COMPAT \ #if defined _GLIBCXX_LONG_DOUBLE_ALT128_COMPAT \
&& defined __LONG_DOUBLE_IEEE128__ && defined __LONG_DOUBLE_IEEE128__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat" // '%Lf' expects 'long double'
extern "C" extern "C"
__typeof__(__builtin_snprintf) __glibcxx_snprintfibm128 __asm__("snprintf"); __typeof__(__builtin_snprintf) __glibcxx_snprintfibm128 __asm__("snprintf");
...@@ -671,6 +673,7 @@ __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) return __intl ? _M_insert<true>(__s, __io, __fill, __digits)
: _M_insert<false>(__s, __io, __fill, __digits); : _M_insert<false>(__s, __io, __fill, __digits);
} }
#pragma GCC diagnostic pop
#endif #endif
_GLIBCXX_END_NAMESPACE_LDBL_OR_CXX11 _GLIBCXX_END_NAMESPACE_LDBL_OR_CXX11
......
...@@ -423,7 +423,7 @@ namespace tr1 ...@@ -423,7 +423,7 @@ namespace tr1
// TODO: Put this in some kind of shared file. // TODO: Put this in some kind of shared file.
namespace namespace
{ {
_Swallow_assign ignore; _Swallow_assign ignore __attribute__((__unused__));
} // anonymous namespace } // anonymous namespace
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment