[committed] libstdc++: Suppress pedantic warnings about __int128
Jakub Jelinek
jakub@redhat.com
Fri Jul 16 08:27:09 GMT 2021
On Fri, Jul 16, 2021 at 08:41:06AM +0100, Jonathan Wakely via Gcc-patches wrote:
> --- a/libstdc++-v3/include/bits/max_size_type.h
> +++ b/libstdc++-v3/include/bits/max_size_type.h
> @@ -417,7 +417,10 @@ namespace ranges
> #endif
>
> #if __SIZEOF_INT128__
> +#pragma GCC diagnostic push
> +#pragma GCC diagnostic ignored "-Wpedantic"
> using __rep = unsigned __int128;
> +#pragma GCC diagnostic pop
At least in simple cases like this, wouldn't
using __rep = __extension__ unsigned __int128;
be smaller? And it should be more targetted, wouldn't disable
other pedantic warnings but about __int128.
Jakub
More information about the Libstdc++
mailing list